public final class UnitType
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static UnitType |
ABSOLUTE
Absolute.
|
private java.lang.String |
name
The name.
|
static UnitType |
RELATIVE
Relative.
|
private static long |
serialVersionUID
For serialization.
|
Modifier | Constructor and Description |
---|---|
private |
UnitType(java.lang.String name)
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if this object is equal to the specified
object, and false otherwise. |
int |
hashCode()
Returns a hash code value for the object.
|
private java.lang.Object |
readResolve()
Ensures that serialization returns the unique instances.
|
java.lang.String |
toString()
Returns a string representing the object.
|
private static final long serialVersionUID
public static final UnitType ABSOLUTE
public static final UnitType RELATIVE
private java.lang.String name
private UnitType(java.lang.String name)
name
- the name.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
true
if this object is equal to the specified
object, and false
otherwise.equals
in class java.lang.Object
obj
- the other object.public int hashCode()
hashCode
in class java.lang.Object
private java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
- if there is a problem.