public class ValueString
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ValueString(java.lang.String text)
Create a new ValueString with the given text and a value of zero.
|
ValueString(java.lang.String text,
int value)
Create a new ValueString with the given text and value
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Return whether the object equals this ValueString object
|
java.lang.String |
getText()
Get the text for this ValueString
|
int |
getValue()
Get the value for this ValueString
|
int |
hashCode()
Return the hash code for this ValueString
|
java.lang.String |
toString()
Return a string representation of this ValueString
|
public ValueString(java.lang.String text)
text
- the text for this ValueStringpublic ValueString(java.lang.String text, int value)
text
- the text for this ValueStringvalue
- the value for this ValueStringpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to check for equalitypublic java.lang.String getText()
public int getValue()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object