|
ProgramixGenericLib v4.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.programix.collections.GeneralStringComparator.NullTreatment
public static final class GeneralStringComparator.NullTreatment
Defines how null references should be treated when being compared to String's.
| Field Summary | |
|---|---|
static GeneralStringComparator.NullTreatment |
GREATER_THAN_ALL
When a null reference is found, treat it as if it is greater than all other strings. |
static GeneralStringComparator.NullTreatment |
LESS_THAN_ALL
When a null reference is found, treat it as if it is less than all other strings. |
static GeneralStringComparator.NullTreatment |
ZERO_LENGTH_STRING
When a null reference is found, treat it as if it was a zero-length string. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Use this method instead of == to be sure that serialization or multiple class loaders have not resulted in multiple instances. |
String |
getName()
|
static GeneralStringComparator.NullTreatment[] |
getValues()
Returns an array of all the legal values. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final GeneralStringComparator.NullTreatment ZERO_LENGTH_STRING
public static final GeneralStringComparator.NullTreatment LESS_THAN_ALL
public static final GeneralStringComparator.NullTreatment GREATER_THAN_ALL
| Method Detail |
|---|
public String getName()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic static GeneralStringComparator.NullTreatment[] getValues()
|
ProgramixGenericLib v4.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||