|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.core.UjoComparator
public class UjoComparator
A generic comparator for the Ujo objects. A direction is the sorting is controlled by attribute UjoProperty.isAscending() .
UjoProperty.isAscending(),
UjoProperty.descending()| Constructor Summary | |
|---|---|
UjoComparator(UjoProperty... properties)
Creates a new instance of UjoComparator |
|
| Method Summary | |
|---|---|
int |
compare(Ujo u1,
Ujo u2)
Compare two Ujo objects. |
boolean |
equals(Ujo u1,
Ujo u2)
An equals test |
static UjoComparator |
newInstance(UjoProperty... properties)
Create new comparator |
java.lang.String |
toString()
A String reprezentation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public UjoComparator(UjoProperty... properties)
properties - sorting criteria are ordered by importance to down.
A direction of the sorting is used by a method UjoProperty#isAscending().UjoProperty.isAscending(),
UjoProperty.descending()| Method Detail |
|---|
public int compare(Ujo u1,
Ujo u2)
compare in interface java.util.Comparator<Ujo>u1 - Ujo Object 1u2 - Ujo Object 2
public java.lang.String toString()
toString in class java.lang.Object
public final boolean equals(Ujo u1,
Ujo u2)
public static UjoComparator newInstance(UjoProperty... properties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||