|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.kosi.gui.view.game.CardComponentComparator
Class for sorting card components.
Uses the CCardComparator.
| Field Summary | |
protected CCardComparator |
comparator
The card comparator used by this comparator. |
| Constructor Summary | |
CardComponentComparator(CCardComparator comparator)
Creates a comparator which uses the given CCardComparator. |
|
| Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Returns the order of the two arguments. |
| 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 |
protected CCardComparator comparator
| Constructor Detail |
public CardComponentComparator(CCardComparator comparator)
comparator - the card comparator used by this comparator.| Method Detail |
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
compare in interface java.util.Comparatorobj1 - the first card component.obj2 - the second card component.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||