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