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