A - the predicate argument type.public class IsWithinRange<A extends Comparable<A>> extends Object implements UnaryPredicate<A>, Serializable
UnaryPredicate that tests whether a Comparable object is
within a range. The range is defined in the constructor.| Constructor and Description |
|---|
IsWithinRange(A min,
A max)
Create a new IsWithinRange by passing in the range that will
be used in the
test(A). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static <A extends Comparable<A>> |
instance(A min,
A max)
Obtain an IsWithinRange instance.
|
boolean |
test(A o)
Evaluate this predicate.
|
String |
toString() |
public IsWithinRange(A min, A max)
test(A).min - Comparablemax - Comparablepublic final boolean test(A o)
test in interface UnaryPredicate<A extends Comparable<A>>o - the A object to testpublic static <A extends Comparable<A>> IsWithinRange<A> instance(A min, A max)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.