public static < T extends Comparable < ? super T > > Predicates < T > betweenInclusive ( T from , T to ) { Predicates . failIfDifferentTypes ( from , to ) ; return new BetweenInclusive < T > ( from , to ) ; }
Creates a predicate which returns true if an object passed to accept method is within the range inclusive of the from and to values .