ProgramixGenericLib v5.0.1

com.programix.collections
Class GeneralStringComparator.CharSort

java.lang.Object
  extended by com.programix.collections.GeneralStringComparator.CharSort
Enclosing class:
GeneralStringComparator

public static final class GeneralStringComparator.CharSort
extends Object

Defines how the characters of the string should be considered when being compared to other String's.

Author:
Paul Hyde

Field Summary
static GeneralStringComparator.CharSort CASE_INSENSITIVE_ASC
          Character's case will be not be considered and will sort ascending.
static GeneralStringComparator.CharSort CASE_INSENSITIVE_DESC
          Character's case will not be be considered and will sort descending.
static GeneralStringComparator.CharSort CASE_SENSITIVE_ASC
          Character's case will be considered and will sort ascending.
static GeneralStringComparator.CharSort CASE_SENSITIVE_DESC
          Character's case will be considered and will sort descending.
 
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.CharSort[] 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

CASE_SENSITIVE_ASC

public static final GeneralStringComparator.CharSort CASE_SENSITIVE_ASC
Character's case will be considered and will sort ascending.


CASE_SENSITIVE_DESC

public static final GeneralStringComparator.CharSort CASE_SENSITIVE_DESC
Character's case will be considered and will sort descending.


CASE_INSENSITIVE_ASC

public static final GeneralStringComparator.CharSort CASE_INSENSITIVE_ASC
Character's case will be not be considered and will sort ascending.


CASE_INSENSITIVE_DESC

public static final GeneralStringComparator.CharSort CASE_INSENSITIVE_DESC
Character's case will not be be considered and will sort descending.

Method Detail

getName

public String getName()

equals

public boolean equals(Object obj)
Use this method instead of == to be sure that serialization or multiple class loaders have not resulted in multiple instances.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getValues

public static GeneralStringComparator.CharSort[] getValues()
Returns an array of all the legal values. A cloned copy is returned, so no caution is required.


ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.