ix.util
Class Name
java.lang.Object
ix.util.Name
- All Implemented Interfaces:
- SemiPrimitive, java.io.Serializable, java.lang.Comparable
public class Name
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable, SemiPrimitive
Wrapper for relatively short strings used as names.
Names should be created by calling Name.valueOf(String)
.
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
name
|
Constructor Summary |
protected |
Name()
|
protected |
Name(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
Name
protected Name()
Name
protected Name(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
valueOf
public static Name valueOf(java.lang.String name)
valueOf
public static Name valueOf(java.lang.Object obj)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object a)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable