public static <S> Feature<S,Boolean> is(final Feature<? super S, Boolean> feature) {
        return new Feature<S, Boolean>() {
            @Override
            public Boolean of(S object) {
                return feature.of(object);
            }

            @Override
            public void describeTo(Description description) {
                description.appendText("is ").appendDescriptionOf(feature);
            }
        };
    }
public static < S > Feature < S , Boolean > is ( final Feature < ? super S , Boolean > feature ) { return new Feature < S , Boolean > ( ) { @ Override public Boolean of ( S object ) { return feature . of ( object ) ; } @ Override public void describeTo ( Description description ) { description . appendText ( "is " ) . appendDescriptionOf ( feature ) ; } } ; }
Decorate a boolean feature to make it more expressive.