All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.predicates.NotEqualCollator
java.lang.Object
|
+----COM.objectspace.jgl.predicates.NotEqualCollator
- public final class NotEqualCollator
- extends Object
- implements BinaryPredicate
NotEqualCollator is a binary predicate that returns true
if the first operand as a string is not the same as 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
-
NotEqualCollator()
- Construct a NotEqualCollator function object that uses the collator
object for the current default locale to compare objects.
-
NotEqualCollator(Collator)
- Construct a NotEqualCollator function object that uses the given collator
object to compare objects.
-
execute(Object, Object)
- Return true if the first operand is not equal to the second operand.
NotEqualCollator
public NotEqualCollator()
- Construct a NotEqualCollator function object that uses the collator
object for the current default locale to compare objects.
NotEqualCollator
public NotEqualCollator(Collator collator)
- Construct a NotEqualCollator 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 not 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