Package com.piketec.tpt.api.properties
Class PropertyString
- java.lang.Object
-
- com.piketec.tpt.api.properties.PropertyString
-
- All Implemented Interfaces:
Property
,java.io.Serializable
public class PropertyString extends java.lang.Object implements Property, java.io.Serializable
A String property value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyString(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getValue()
int
hashCode()
java.lang.String
toString()
void
toString(java.lang.StringBuffer buffer, java.lang.String indentation)
Fills the givenStringBuffer
with a clear String-representation of all (possibly nested) property values of thisProperty
object.
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
- Returns:
- the actual integer value represented by this property
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public void toString(java.lang.StringBuffer buffer, java.lang.String indentation)
Description copied from interface:Property
Fills the givenStringBuffer
with a clear String-representation of all (possibly nested) property values of thisProperty
object.For that, the given String
indentation
is used initially and each additional element is shifted by additional whitespaces.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-