|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.NamedComparator
public class NamedComparator
a flexible Comparator for INamed, internally using
a Collator.
Collator| Constructor Summary | |
|---|---|
NamedComparator()
creates a NamedComparator in the default locale with
secondary strength (Collator.SECONDARY) and canonical
decomposition (Collator.CANONICAL_DECOMPOSITION). |
|
NamedComparator(java.util.Locale locale)
creates a NamedComparator in the given locale with secondary
strength (Collator.SECONDARY) and canonical decomposition (
Collator.CANONICAL_DECOMPOSITION). |
|
NamedComparator(java.util.Locale locale,
int strength,
int decompositionMode)
creates a NamedComparator in the given locale, strength and
decomposition mode. |
|
| Method Summary | |
|---|---|
int |
compare(INamed o1, INamed o2)
compares the two named objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public NamedComparator()
NamedComparator in the default locale with
secondary strength (Collator.SECONDARY) and canonical
decomposition (Collator.CANONICAL_DECOMPOSITION).
public NamedComparator(java.util.Locale locale)
NamedComparator in the given locale with secondary
strength (Collator.SECONDARY) and canonical decomposition (
Collator.CANONICAL_DECOMPOSITION).
locale - the locale for the Collator
public NamedComparator(java.util.Locale locale,
int strength,
int decompositionMode)
NamedComparator in the given locale, strength and
decomposition mode.
locale - the locale for the Collatorstrength - the strength for the CollatordecompositionMode - the decomposition mode for the Collator| Method Detail |
|---|
public final int compare(INamed o1, INamed o2)
compare in interface java.util.Comparator<INamed>o1 - the first object to be compared.o2 - the second object to be compared.
Comparator.compare(java.lang.Object, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||