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