All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.predicates.LessEqualCollator
java.lang.Object
|
+----COM.objectspace.jgl.predicates.LessEqualCollator
- public final class LessEqualCollator
- extends Object
- implements BinaryPredicate
LessEqualCollator is a binary predicate that returns true
if the first operand as a string is less than or equal to the
second operand as a string when compared using the given Collator object.
If an explicit Collator object is not given, the default is used.
- See Also:
- Collator, CollateExamples
-
LessEqualCollator()
- Construct a LessEqualCollator function object that uses the collator
object for the current default locale to compare objects.
-
LessEqualCollator(Collator)
- Construct a LessEqualCollator function object that uses the given collator
object to compare objects.
-
execute(Object, Object)
- Return true if the first operand is less than or equal to the second operand.
LessEqualCollator
public LessEqualCollator()
- Construct a LessEqualCollator function object that uses the collator
object for the current default locale to compare objects.
LessEqualCollator
public LessEqualCollator(Collator collator)
- Construct a LessEqualCollator function object that uses the given collator
object to compare objects.
- Parameters:
- collator - The Collator object that is to be used for comparisons.
execute
public boolean execute(Object first,
Object second)
- Return true if the first operand is less than or equal to the second operand.
- Parameters:
- first - The first operand.
- second - The second operand.
- Returns:
- collator.compare( first.toString(), second.toString() ) <= 0.
- See Also:
- compare
All Packages Class Hierarchy This Package Previous Next Index