public class IlvDefaultClusterIdComparator extends Object implements Comparator<IlvClusterId>, Serializable
IlvClusterId objects.
It compares in a locale sensitive way if it is constructed with a locale
argument, or in a locale independent way otherwise.IlvClusterIdComparator,
IlvFlatListToTreeListModel,
Serialized Form| Constructor and Description |
|---|
IlvDefaultClusterIdComparator()
Creates a locale independent comparator.
|
IlvDefaultClusterIdComparator(Locale locale)
Creates a comparator that compares in a locale sensitive way.
|
IlvDefaultClusterIdComparator(com.ibm.icu.util.ULocale locale)
Creates a comparator that compares in a locale sensitive way.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(IlvClusterId id1,
IlvClusterId id2)
Compares the given cluster ids.
|
boolean |
equals(Object o)
Tests whether this object is the same as another object.
|
int |
hashCode()
Returns a hash code of this object that is consistent with the
equals method. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic IlvDefaultClusterIdComparator()
public IlvDefaultClusterIdComparator(Locale locale)
locale - The locale to use for comparing strings.public IlvDefaultClusterIdComparator(com.ibm.icu.util.ULocale locale)
locale - The locale to use for comparing strings.public int compare(IlvClusterId id1, IlvClusterId id2)
compare in interface Comparator<IlvClusterId>id1 is less than id2,
a positive value if id1 is greater than
id2, or 0 if they are equal.public boolean equals(Object o)
equals in interface Comparator<IlvClusterId>equals in class Object© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.