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 FormConstructor and Description |
---|
IlvDefaultClusterIdComparator()
Creates a locale independent comparator.
|
IlvDefaultClusterIdComparator(Locale locale)
Creates a comparator that compares in a locale sensitive way.
|
IlvDefaultClusterIdComparator(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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public IlvDefaultClusterIdComparator()
public IlvDefaultClusterIdComparator(Locale locale)
locale
- The locale to use for comparing strings.public IlvDefaultClusterIdComparator(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 Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.