Package com.piketec.tpt.api.properties
Class PropertyInt
- java.lang.Object
-
- com.piketec.tpt.api.properties.PropertyInt
-
- All Implemented Interfaces:
Property
,java.io.Serializable
public class PropertyInt extends java.lang.Object implements Property, java.io.Serializable
A integer property value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyInt(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
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 int getValue()
- Returns:
- the 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
-
-