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