public static < T > Predicate < T > or ( final Predicate < ? super T > first , final Predicate < ? super T > second ) { //NOPMD return new Predicate < T > ( ) { @ Override public boolean test ( final T testValue ) { return first . test ( testValue ) || second . test ( testValue ) ; } } ; }
Create a predicate which is a logical or of two existing predicate .