org.entityfs.util.cmp
Class EntityNameComparator
java.lang.Object
org.entityfs.util.cmp.EntityNameComparator
- All Implemented Interfaces:
- Serializable, Comparator<EntityView>
public class EntityNameComparator
- extends Object
- implements Comparator<EntityView>, Serializable
This is a comparator for sorting entities in an alphabetic order. Entities
are locked for reading as their names are read, so expect a lot of locking...
Since this comparator does not contain any mutable internal state, clients
should use the singleton instance COMPARATOR
instead of
instantiating the class.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
- Serialized Form
- In_jar:
- entityfs-util
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPARATOR
public static final EntityNameComparator COMPARATOR
- Singleton instance.
EntityNameComparator
public EntityNameComparator()
compare
public int compare(EntityView o1,
EntityView o2)
- Specified by:
compare
in interface Comparator<EntityView>