|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.entitymanager.logic.EntityByNameComparator
public class EntityByNameComparator
A Comparator
for entities.
This comparator compares entities by their name.
EntityInterface
Field Summary | |
---|---|
private LogicFacade |
logicFacade
The LogicFacade used to determine the
names of the entities. |
Constructor Summary | |
---|---|
EntityByNameComparator(LogicFacade logicFacade)
Constructs a Comparator for entities. |
Method Summary | |
---|---|
int |
compare(java.lang.Object entity1,
java.lang.Object entity2)
Compares two given entities. |
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 |
Field Detail |
---|
private LogicFacade logicFacade
LogicFacade
used to determine the
names of the entities.
LogicFacade
Constructor Detail |
---|
public EntityByNameComparator(LogicFacade logicFacade)
Comparator
for entities.The names of the entities will be determined through the given logic facade.
logicFacade
- the logic facade to determine the namesMethod Detail |
---|
public int compare(java.lang.Object entity1, java.lang.Object entity2)
Both objects must be instances of EntityInterface
.
compare
in interface java.util.Comparator
Comparator.compare(java.lang.Object, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |