View Javadoc

1   /**
2    * 
3    */
4   package com.lexicalscope.fluentreflection;
5   
6   import org.hamcrest.Description;
7   
8   
9   final class MatcherIsInterface extends ReflectionMatcher<FluentClass<?>> {
10      @Override
11      public boolean matchesSafely(final FluentClass<?> arg) {
12          return arg.isInterface();
13      }
14  
15      @Override
16      public void describeTo(final Description description) {
17          description.appendText("type that is an interface");
18      }
19  }