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