|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.group.impl.FaceComparator
public class FaceComparator
Comparator for comparing face instances based on their text value. The comparator compares faces based on a specified context.
| Field Summary | |
|---|---|
(package private) java.lang.String |
context
|
| Constructor Summary | |
|---|---|
FaceComparator(java.lang.String context)
Creates a new instance. |
|
| Method Summary | |
|---|---|
int |
compare(CommandGroup target,
CommandGroup embedded)
Compares the two faces based on the context specified in the constructor. |
| 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 |
|---|
java.lang.String context
| Constructor Detail |
|---|
public FaceComparator(java.lang.String context)
context - the context to compare.| Method Detail |
|---|
public int compare(CommandGroup target,
CommandGroup embedded)
compare in interface java.util.Comparator<CommandGroup>target - the face of the group that will accept the contribution.embedded - the face of the command to be embedded.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||