|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.time.IHasDurationComparator
public final class IHasDurationComparator
A Comparator<IHasDuration> compares two given
IHasDurations.
IHasDurationComparator.Order.ASCIHasDurationComparator.Mode.START
IHasDuration, Serialized Form| Nested Class Summary | |
|---|---|
static class |
IHasDurationComparator.Mode
The values for the mode of the IHasDurationComparator. |
static class |
IHasDurationComparator.Order
The values for the duration order of the IHasDurationComparator. |
| Constructor Summary | |
|---|---|
IHasDurationComparator()
Creates a new IHasDurationComparator with:
default order: IHasDurationComparator.Order.ASC
default mode: IHasDurationComparator.Mode.START
. |
|
IHasDurationComparator(IHasDurationComparator.Mode mode)
Creates a new IHasDurationComparator with the given mode and
the default order: IHasDurationComparator.Order.ASC. |
|
IHasDurationComparator(IHasDurationComparator.Order order)
Creates a new IHasDurationComparator with the given order
and the default mode: IHasDurationComparator.Mode.START. |
|
IHasDurationComparator(IHasDurationComparator.Order order, IHasDurationComparator.Mode mode)
Creates a new IHasDurationComparator with and the given
mode. |
|
| Method Summary | |
|---|---|
int |
compare(IHasDuration o1, IHasDuration o2)
Compares the given IHasDurations according to the internal
compare mode 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 IHasDurationComparator()
IHasDurationComparator with:
IHasDurationComparator.Order.ASCIHasDurationComparator.Mode.START
public IHasDurationComparator(IHasDurationComparator.Order order)
IHasDurationComparator with the given order
and the default mode: IHasDurationComparator.Mode.START.
order - the IHasDurationComparator.Orderpublic IHasDurationComparator(IHasDurationComparator.Mode mode)
IHasDurationComparator with the given mode and
the default order: IHasDurationComparator.Order.ASC.
mode - the IHasDurationComparator.Modepublic IHasDurationComparator(IHasDurationComparator.Order order, IHasDurationComparator.Mode mode)
IHasDurationComparator with and the given
mode.
order - the IHasDurationComparator.Ordermode - the IHasDurationComparator.Mode| Method Detail |
|---|
public int compare(IHasDuration o1, IHasDuration o2)
IHasDurations according to the internal
compare mode and returns the comparison result according to the internal
order.
compare in interface java.util.Comparator<IHasDuration>o1 - a IHasDurationo2 - a IHasDuration
java.lang.IllegalStateException - if internal compareMode is not set (this should
never happen)Comparator.compare(java.lang.Object, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||