|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jstatcom.util.ComparatorTypes
public abstract class ComparatorTypes
This class contains comparators that can be reused by other classes.
It implements the typesave enum pattern (Joshua Bloch, "Effective
Java", Item 21) . If you compare ComparatorTypes,
always use the == operator. This is save, because they are
Singletons (Gamma et al., 1995) .
| Field Summary | |
|---|---|
static ComparatorTypes |
STRING_DEFAULT
Compares two strings regardless of their case. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Override prevention method to enforce a.equals(b) if and
only if a==b. |
int |
hashCode()
Override prevention method invokes super method. |
java.lang.String |
toString()
Returns a string representation of this type, do not use for comparisons. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
compare |
| Field Detail |
|---|
public static final ComparatorTypes STRING_DEFAULT
| Method Detail |
|---|
public final boolean equals(java.lang.Object o)
a.equals(b) if and
only if a==b.
equals in interface java.util.Comparator<java.lang.Object>equals in class java.lang.Objecto - object to compare with
true if mainPeriod, subPeriod and subPeriodicity
are the same, false otherwisepublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||