|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.statistics.model.aggregation.ICountComparator
public final class ICountComparator
A Comparator<ICount>.
ICountComparator.Order.ASCICountComparator.Mode.SOFT
| Nested Class Summary | |
|---|---|
static class |
ICountComparator.Mode
The values for the mode of the ICountComparator which apply
during internal compare. |
static class |
ICountComparator.Order
The values for the order of the ICountComparator. |
| Constructor Summary | |
|---|---|
ICountComparator()
Creates a new ICountComparator with:
default order: ICountComparator.Order.ASC
default mode: ICountComparator.Mode.SOFT
. |
|
ICountComparator(ICountComparator.Mode mode)
Creates a new ICountComparator with the given mode and the
default order: ICountComparator.Order.ASC. |
|
ICountComparator(ICountComparator.Order order)
Creates a new ICountComparator with the given order and the
default mode: ICountComparator.Mode.SOFT. |
|
ICountComparator(ICountComparator.Order order, ICountComparator.Mode mode)
Creates a new ICountComparator with the given order and the
given mode. |
|
| Method Summary | |
|---|---|
int |
compare(ICount o1, ICount o2)
Compares the given ICounts and returns the comparison result
according to the internal order. |
| 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 |
| Constructor Detail |
|---|
public ICountComparator()
ICountComparator with:
ICountComparator.Order.ASCICountComparator.Mode.SOFT
public ICountComparator(ICountComparator.Order order)
ICountComparator with the given order and the
default mode: ICountComparator.Mode.SOFT.
order - the ICountComparator.Orderpublic ICountComparator(ICountComparator.Mode mode)
ICountComparator with the given mode and the
default order: ICountComparator.Order.ASC.
mode - the ICountComparator.Modepublic ICountComparator(ICountComparator.Order order, ICountComparator.Mode mode)
ICountComparator with the given order and the
given mode.
order - the ICountComparator.Ordermode - the ICountComparator.Mode| Method Detail |
|---|
public int compare(ICount o1, ICount o2)
ICounts and returns the comparison result
according to the internal order.
NOTE: If the given ICounts are also
instanceof INamed and the compare mode is
ICountComparator.Mode.SOFT the names of the given
INameds will be compared if their counts match.
compare in interface java.util.Comparator<ICount>o1 - a ICounto2 - a ICount
Comparator.compare(java.lang.Object, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||