public class Constant
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
value
The value.
|
| Constructor and Description |
|---|
Constant(java.lang.Object value)
Create a constant.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Test if this constant equals another object.
|
java.lang.Object |
getValue()
Get the value.
|
int |
hashCode()
Get the hash code of this constant.
|
java.lang.String |
toString()
Get a stering representation.
|
public Constant(java.lang.Object value)
value - The value.public java.lang.Object getValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The other object.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object