Package com.thingworx.types.primitives
Class LongPrimitive
- java.lang.Object
-
- com.thingworx.types.primitives.LongPrimitive
-
- All Implemented Interfaces:
IPrimitiveType<LongPrimitive,java.lang.Long>
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
,java.util.Comparator<LongPrimitive>
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class LongPrimitive extends java.lang.Object implements IPrimitiveType<LongPrimitive,java.lang.Long>, java.lang.Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongPrimitive()
LongPrimitive(java.lang.Double value)
Deprecated.LongPrimitive(java.lang.Integer value)
Deprecated.LongPrimitive(java.lang.Long value)
Deprecated.LongPrimitive(java.lang.Number value)
Creates a new primitive that storesLong
values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LongPrimitive
clone()
int
compare(LongPrimitive v1, LongPrimitive v2)
int
compareTo(java.lang.Object value)
static LongPrimitive
convertFromObject(java.lang.Object data)
BaseTypes
getBaseType()
java.lang.Object
getSerializedValue()
java.lang.String
getStringValue()
java.lang.Long
getValue()
void
setValue(java.lang.Long value)
-
-
-
Constructor Detail
-
LongPrimitive
@ThingworxExtensionApiMethod(since={6,6}) public LongPrimitive()
-
LongPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public LongPrimitive(java.lang.Long value)
Deprecated.
-
LongPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public LongPrimitive(java.lang.Integer value)
Deprecated.
-
LongPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public LongPrimitive(java.lang.Double value)
Deprecated.
-
LongPrimitive
@ThingworxExtensionApiMethod(since={8,1}) public LongPrimitive(java.lang.Number value)
Creates a new primitive that storesLong
values.- Parameters:
value
- the number to store in the primitive
-
-
Method Detail
-
getBaseType
@ThingworxExtensionApiMethod(since={6,6}) public BaseTypes getBaseType()
- Specified by:
getBaseType
in interfaceIPrimitiveType<LongPrimitive,java.lang.Long>
-
getValue
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Long getValue()
- Specified by:
getValue
in interfaceIPrimitiveType<LongPrimitive,java.lang.Long>
-
setValue
@ThingworxExtensionApiMethod(since={6,6}) public void setValue(java.lang.Long value)
- Specified by:
setValue
in interfaceIPrimitiveType<LongPrimitive,java.lang.Long>
-
getSerializedValue
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Object getSerializedValue()
- Specified by:
getSerializedValue
in interfaceIPrimitiveType<LongPrimitive,java.lang.Long>
-
compareTo
@ThingworxExtensionApiMethod(since={6,6}) public int compareTo(java.lang.Object value)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
compare
@ThingworxExtensionApiMethod(since={6,6}) public int compare(LongPrimitive v1, LongPrimitive v2)
- Specified by:
compare
in interfacejava.util.Comparator<LongPrimitive>
-
convertFromObject
@ThingworxExtensionApiMethod(since={6,6}) public static LongPrimitive convertFromObject(java.lang.Object data) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
clone
@ThingworxExtensionApiMethod(since={6,6}) public LongPrimitive clone()
- Specified by:
clone
in interfaceIPrimitiveType<LongPrimitive,java.lang.Long>
- Overrides:
clone
in classjava.lang.Object
-
getStringValue
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getStringValue()
- Specified by:
getStringValue
in interfaceIPrimitiveType<LongPrimitive,java.lang.Long>
-
-