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