com.acsinet_solutions.util.text
Class Code
java.lang.Object
com.acsinet_solutions.util.text.Code
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public final class Code
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Comparable
This class implements a code that may ( or may not ) start with an
int value, and continue with a String value, and should be ordered
according to numeric value first and alphanumeric value later.
- Author:
- Santiago Arriaga - santiago.arriaga@acsinet-solutions.com
- See Also:
- Serialized Form
|
Constructor Summary |
Code(java.lang.String str)
Create the Code instance from a String value |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Code
public Code(java.lang.String str)
- Create the Code instance from a String value
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public final int hashCode()
- Overrides:
hashCode in class java.lang.Object
- See Also:
Object.hashCode()
toString
public final java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()
compareTo
public final int compareTo(java.lang.Object obj)
- Specified by:
compareTo in interface java.lang.Comparable
- See Also:
Comparable.compareTo(java.lang.Object)