All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.GreaterEqualCollator

java.lang.Object
   |
   +----COM.objectspace.jgl.GreaterEqualCollator

public final class GreaterEqualCollator
extends Object
implements BinaryPredicate
GreaterEqualCollator is a binary predicate that returns true if the first operand as a string is greater 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.

Version:
2.0.2
Author:
ObjectSpace, Inc.
See Also:
Collator, CollateExamples

Constructor Index

 o GreaterEqualCollator()
Construct a GreaterEqualCollator function object that uses the collator object for the current default locale to compare objects.
 o GreaterEqualCollator(Collator)
Construct a GreaterEqualCollator function object that uses the given collator object to compare objects.

Method Index

 o execute(Object, Object)
Return true if the first operand is greater than or equal to the second operand.

Constructors

 o GreaterEqualCollator
 public GreaterEqualCollator()
Construct a GreaterEqualCollator function object that uses the collator object for the current default locale to compare objects.

 o GreaterEqualCollator
 public GreaterEqualCollator(Collator collator)
Construct a GreaterEqualCollator function object that uses the given collator object to compare objects.

Parameters:
collator - The Collator object that is to be used for comparisons.

Methods

 o execute
 public boolean execute(Object first,
                        Object second)
Return true if the first operand is greater 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