Package totalcross.util
Class Properties.Boolean
- java.lang.Object
-
- totalcross.util.Properties.Value
-
- totalcross.util.Properties.Boolean
-
- Enclosing class:
- Properties
public static class Properties.Boolean extends Properties.Value
Implements a value of type boolean
-
-
Field Summary
Fields Modifier and Type Field Description static charTYPEbooleanvalue-
Fields inherited from class totalcross.util.Properties.Value
type, typeStr
-
-
Constructor Summary
Constructors Constructor Description Boolean(boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Returns true if and only if the argument is not null and is a Boolean object that represents the same boolean value as this object.inthashCode()Returns a hash code for this Boolean object.java.lang.StringtoString()
-
-
-
Field Detail
-
TYPE
public static final char TYPE
- See Also:
- Constant Field Values
-
value
public boolean value
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toStringin classProperties.Value
-
hashCode
public int hashCode()
Returns a hash code for this Boolean object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- the integer 1231 if this object represents true; returns the integer 1237 if this object represents false.
- Since:
- TotalCross 1.25
-
equals
public boolean equals(java.lang.Object obj)
Returns true if and only if the argument is not null and is a Boolean object that represents the same boolean value as this object.- Overrides:
equalsin classjava.lang.Object- Since:
- TotalCross 1.25
-
-