|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rivetlogic.scar.comparator.SimpleComparator<K>
public class SimpleComparator<K extends java.lang.Comparable>
An implementation of java.util.Comparator to help with sorting a list of objects that implement java.lang.Comparable alphabetically.
| Field Summary | |
|---|---|
protected boolean |
sortasc
|
| Constructor Summary | |
|---|---|
SimpleComparator(boolean ascending)
|
|
| Method Summary | |
|---|---|
int |
compare(K a,
K b)
|
| 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 boolean sortasc
| Constructor Detail |
|---|
public SimpleComparator(boolean ascending)
| Method Detail |
|---|
public final int compare(K a,
K b)
compare in interface java.util.Comparator<K extends java.lang.Comparable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||