public static < T > Predicate < T > ignore ( BooleanSupplier proposition , Class < T > ignored ) { dbc . precondition ( proposition != null , "cannot ignore parameter of a null proposition" ) ; return t -> proposition . getAsBoolean ( ) ; }
Adapts a proposition to a predicate by ignoring the passed parameter .