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