Package com.thingworx.types.primitives
Class NumberPrimitive
java.lang.Object
com.thingworx.types.primitives.NumberPrimitive
- All Implemented Interfaces:
IPrimitiveType<NumberPrimitive,
,Double> Serializable
,Cloneable
,Comparable
,Comparator<NumberPrimitive>
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public final class NumberPrimitive
extends Object
implements IPrimitiveType<NumberPrimitive,Double>, Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNumberPrimitive
(Double value) Deprecated.NumberPrimitive
(Integer value) Deprecated.NumberPrimitive
(Long value) Deprecated.NumberPrimitive
(Number value) -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
compare
(NumberPrimitive v1, NumberPrimitive v2) int
static NumberPrimitive
convertFromObject
(Object data) Deprecated.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
-
NumberPrimitive
-
NumberPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public NumberPrimitive(Integer value) Deprecated. -
NumberPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public NumberPrimitive(Long value) Deprecated. -
NumberPrimitive
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,1}) public NumberPrimitive(Double value) Deprecated. -
NumberPrimitive
- Parameters:
value
- the number to store in the primitive
-
-
Method Details
-
getBaseType
- Specified by:
getBaseType
in interfaceIPrimitiveType<NumberPrimitive,
Double>
-
getValue
- Specified by:
getValue
in interfaceIPrimitiveType<NumberPrimitive,
Double>
-
setValue
- Specified by:
setValue
in interfaceIPrimitiveType<NumberPrimitive,
Double>
-
getSerializedValue
- Specified by:
getSerializedValue
in interfaceIPrimitiveType<NumberPrimitive,
Double>
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-
compare
@ThingworxExtensionApiMethod(since={6,6}) public int compare(NumberPrimitive v1, NumberPrimitive v2) - Specified by:
compare
in interfaceComparator<NumberPrimitive>
-
convertFromObject
@Deprecated @ThingworxExtensionApiMethod(since={6,6}) public static NumberPrimitive convertFromObject(Object data) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
clone
- Specified by:
clone
in interfaceIPrimitiveType<NumberPrimitive,
Double> - Overrides:
clone
in classObject
-
getStringValue
- Specified by:
getStringValue
in interfaceIPrimitiveType<NumberPrimitive,
Double>
-