Package totalcross.util
Class Properties.Long
- java.lang.Object
-
- totalcross.util.Properties.Value
-
- totalcross.util.Properties.Long
-
- Enclosing class:
- Properties
public static class Properties.Long extends Properties.Value
Implements a value of type long
-
-
Field Summary
Fields Modifier and Type Field Description static charTYPElongvalue-
Fields inherited from class totalcross.util.Properties.Value
type, typeStr
-
-
Constructor Summary
Constructors Constructor Description Long(long 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 thisLong.java.lang.StringtoString()
-
-
-
Field Detail
-
TYPE
public static final char TYPE
- See Also:
- Constant Field Values
-
value
public long value
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toStringin classProperties.Value
-
hashCode
public int hashCode()
Returns a hash code for thisLong. The result is the exclusive OR of the two halves of the primitivelongvalue held by thisLongobject. That is, the hashcode is the value of the expression:(int) (this.value ˆ (this.value >>> 32))
- Overrides:
hashCodein classjava.lang.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 a Long object that contains the same long value as this object.- Overrides:
equalsin classjava.lang.Object- Since:
- TotalCross 1.25
-
-