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