public final class TextParam extends DataParam
Modified by: Joseph A. Huwaldt
RESOURCES
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this parameter for strict equality same text,
same name, and same user data.
|
javolution.text.Text |
getText()
Return the text of this text parameter.
|
int |
hashCode()
Returns the hash code for this
UnitParameter . |
static TextParam |
newInstance(java.lang.CharSequence name)
Returns a new, preallocated or recycled
TextParam instance (on the
stack when executing in a StackContext ) with the specified name and
containing no text. |
static void |
recycle(TextParam instance)
Recycles a parameter instance immediately (on the stack when executing in a
StackContext).
|
void |
setText(java.lang.CharSequence text)
Change the text contained in this parameter.
|
java.lang.String |
toString()
Create a string representation of this parameter which consists of the parameter's
name and text.
|
javolution.text.Text |
toText()
Create a Text representation of this parameter which consists of the parameter's
name and text.
|
static TextParam |
valueOf(java.lang.CharSequence name,
java.lang.CharSequence text)
Returns a text parameter with the specified name and text (which may be null).
|
compareTo, getName, getUserObject, setName, setUserObject
public static TextParam newInstance(java.lang.CharSequence name)
TextParam
instance (on the
stack when executing in a StackContext
) with the specified name and
containing no text.name
- The name to be assigned to this parameter (may not be
null
).public static void recycle(TextParam instance)
public static TextParam valueOf(java.lang.CharSequence name, java.lang.CharSequence text)
public javolution.text.Text getText()
public void setText(java.lang.CharSequence text)
public boolean equals(java.lang.Object obj)
public int hashCode()
UnitParameter
.public javolution.text.Text toText()