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