Class AMAttrSchemaComparator
- java.lang.Object
-
- com.sun.identity.console.base.model.AMAttrSchemaComparator
-
- All Implemented Interfaces:
Comparator
public class AMAttrSchemaComparator extends Object implements Comparator
AMAttrSchemaComparatorcompares the i18n key of twoAttributeSchemaobjects. Its supports Collator.
-
-
Constructor Summary
Constructors Constructor Description AMAttrSchemaComparator(Collator collator)Constructs of an attribute schema's i18n key comparator object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object o1, Object o2)Performs string comparison on attribute schema's i18n keys-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
AMAttrSchemaComparator
public AMAttrSchemaComparator(Collator collator)
Constructs of an attribute schema's i18n key comparator object- Parameters:
collator- for locale base sorting
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
Performs string comparison on attribute schema's i18n keys- Specified by:
comparein interfaceComparator- Parameters:
o1-AttributeSchemaobjecto2-AttributeSchemaobject- Returns:
- 0 if i18n key of o1 is equal to i18n key of o2; less than 0 if i18n key of o1 is lexicographically less than i18n key of o2; greater than 0 if i18n key of o1 is greater than i18n key of o2.
-
-