@ThingworxExtensionApiClass(since={7,1}, canInstantiate=true) public final class Vec4Primitive extends java.lang.Object implements IPrimitiveType<Vec4Primitive,Vec4>, java.lang.Cloneable
Vec4
,
Serialized FormConstructor and Description |
---|
Vec4Primitive()
Construct a new Vec4Primitive with a new Vec4 containing default values. |
Vec4Primitive(java.lang.Double x,
java.lang.Double y,
java.lang.Double z,
java.lang.Double w)
Construct a new Vec4Primitive with the provided x, y, z, and w values. |
Vec4Primitive(Vec4 vec4)
Construct a new Vec4Primitive with a provided Vec4. |
Modifier and Type | Method and Description |
---|---|
Vec4Primitive |
clone()
Clone the current Vec4Primitive instance. |
int |
compare(Vec4Primitive v1,
Vec4Primitive v2) |
int |
compareTo(java.lang.Object value) |
static Vec4Primitive |
convertFromObject(java.lang.Object data)
Convert the incoming data Object to a Vec4Primitive from a String, Vec4, JSONObject, or HashMap. |
BaseTypes |
getBaseType()
Get the BaseType associated to this Vec4Primitive. |
java.lang.Object |
getSerializedValue()
Get a serialized String representation of this Vec4Primitive instance. |
java.lang.String |
getStringValue() |
Vec4 |
getValue()
Get this Vec4Primitive's instance value. |
void |
setValue(Vec4 value) |
java.lang.String |
toString() |
@ThingworxExtensionApiMethod(since={7,1}) public Vec4Primitive()
Vec4
@ThingworxExtensionApiMethod(since={7,1}) public Vec4Primitive(Vec4 vec4)
vec4
- - a Vec4 to be stored in a new Vec4Primitive@ThingworxExtensionApiMethod(since={7,1}) public Vec4Primitive(java.lang.Double x, java.lang.Double y, java.lang.Double z, java.lang.Double w)
x
- - double value to be used for xy
- - double value to be used for yz
- - double value to be used for zw
- - double value to be used for w@ThingworxExtensionApiMethod(since={7,1}) public BaseTypes getBaseType()
getBaseType
in interface IPrimitiveType<Vec4Primitive,Vec4>
@ThingworxExtensionApiMethod(since={7,1}) public java.lang.Object getSerializedValue()
getSerializedValue
in interface IPrimitiveType<Vec4Primitive,Vec4>
@ThingworxExtensionApiMethod(since={7,1}) public Vec4 getValue()
getValue
in interface IPrimitiveType<Vec4Primitive,Vec4>
@ThingworxExtensionApiMethod(since={7,1}) public int compareTo(java.lang.Object value)
compareTo
in interface java.lang.Comparable
@ThingworxExtensionApiMethod(since={7,1}) public int compare(Vec4Primitive v1, Vec4Primitive v2)
compare
in interface java.util.Comparator<Vec4Primitive>
@ThingworxExtensionApiMethod(since={7,1}) public java.lang.String toString()
toString
in class java.lang.Object
@ThingworxExtensionApiMethod(since={7,1}) public Vec4Primitive clone()
clone
in interface IPrimitiveType<Vec4Primitive,Vec4>
clone
in class java.lang.Object
@ThingworxExtensionApiMethod(since={7,1}) public static Vec4Primitive convertFromObject(java.lang.Object data) throws java.lang.Exception
data
- -Incoming object to be converted to a Vec4Primitivejava.lang.Exception
- if an error occurs@ThingworxExtensionApiMethod(since={7,1}) public java.lang.String getStringValue()
getStringValue
in interface IPrimitiveType<Vec4Primitive,Vec4>
@ThingworxExtensionApiMethod(since={7,1}) public void setValue(Vec4 value)
setValue
in interface IPrimitiveType<Vec4Primitive,Vec4>