Package org.apache.harmony.security.x501
Class AttributeTypeAndValueComparator
- java.lang.Object
-
- org.apache.harmony.security.x501.AttributeTypeAndValueComparator
-
- All Implemented Interfaces:
Serializable,Comparator<AttributeTypeAndValue>
public class AttributeTypeAndValueComparator extends Object implements Comparator<AttributeTypeAndValue>, Serializable
AttributeTypeAndValue comparator- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttributeTypeAndValueComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(AttributeTypeAndValue atav1, AttributeTypeAndValue atav2)compares two AttributeTypeAndValues-
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
-
-
-
-
Method Detail
-
compare
public int compare(AttributeTypeAndValue atav1, AttributeTypeAndValue atav2)
compares two AttributeTypeAndValues- Specified by:
comparein interfaceComparator<AttributeTypeAndValue>- Parameters:
atav1- first AttributeTypeAndValueatav2- second AttributeTypeAndValue- Returns:
- -1 of first AttributeTypeAndValue "less" than second AttributeTypeAndValue 1 otherwise, 0 if they are equal
-
-