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