public static < T > Predicate < T > negate ( final Predicate < ? super T > predicate ) { return new Predicate < T > ( ) { @ Override public boolean test ( final T testValue ) { return ! predicate . test ( testValue ) ; } } ; }
Negate an existing predicate s test result .