public Predicate < T > negate ( ) { return new Predicate < T > ( ) { @ Override public boolean test ( T input ) { return ! Predicate . this . test ( input ) ; } @ Override public Predicate < T > negate ( ) { return Predicate . this ; } } ; }
Obtain a new predicate that performs the logical NOT of this predicate .