Class ByNameComparator
- java.lang.Object
-
- org.opennms.netmgt.collection.api.ByNameComparator
-
- All Implemented Interfaces:
Serializable,Comparator<CollectionAttributeType>
public final class ByNameComparator extends Object implements Comparator<CollectionAttributeType>, Serializable
ByNameComparator class.
- Version:
- $Id: $
- Author:
- ranger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByNameComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(CollectionAttributeType type0, CollectionAttributeType type1)comparebooleanequals(Object o)inthashCode()hashCode-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(CollectionAttributeType type0, CollectionAttributeType type1)
compare
- Specified by:
comparein interfaceComparator<CollectionAttributeType>- Parameters:
type0- aCollectionAttributeTypeobject.type1- aCollectionAttributeTypeobject.- Returns:
- a int.
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceComparator<CollectionAttributeType>- Overrides:
equalsin classObject
-
-