Package com.thingworx.types.primitives
Class LongPrimitive
java.lang.Object
com.thingworx.types.primitives.LongPrimitive
- All Implemented Interfaces:
IPrimitiveType<LongPrimitive,
,Long> Serializable
,Cloneable
,Comparable
,Comparator<LongPrimitive>
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public final class LongPrimitive
extends Object
implements IPrimitiveType<LongPrimitive,Long>, Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLongPrimitive
(Double value) Deprecated.LongPrimitive
(Integer value) Deprecated.LongPrimitive
(Long value) Deprecated.LongPrimitive
(Number value) -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
compare
(LongPrimitive v1, LongPrimitive v2) int
static LongPrimitive
convertFromObject
(Object data) getValue()
void
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
LongPrimitive
-
LongPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public LongPrimitive(Long value) Deprecated. -
LongPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public LongPrimitive(Integer value) Deprecated. -
LongPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public LongPrimitive(Double value) Deprecated. -
LongPrimitive
- Parameters:
value
- the number to store in the primitive
-
-
Method Details
-
getBaseType
- Specified by:
getBaseType
in interfaceIPrimitiveType<LongPrimitive,
Long>
-
getValue
- Specified by:
getValue
in interfaceIPrimitiveType<LongPrimitive,
Long>
-
setValue
- Specified by:
setValue
in interfaceIPrimitiveType<LongPrimitive,
Long>
-
getSerializedValue
- Specified by:
getSerializedValue
in interfaceIPrimitiveType<LongPrimitive,
Long>
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-
compare
- Specified by:
compare
in interfaceComparator<LongPrimitive>
-
convertFromObject
@ThingworxExtensionApiMethod(since={6,6}) public static LongPrimitive convertFromObject(Object data) throws Exception - Throws:
Exception
- If an error occurs
-
clone
- Specified by:
clone
in interfaceIPrimitiveType<LongPrimitive,
Long> - Overrides:
clone
in classObject
-
getStringValue
- Specified by:
getStringValue
in interfaceIPrimitiveType<LongPrimitive,
Long>
-