Package com.thingworx.platform.common
Class EntityVersion
java.lang.Object
com.thingworx.platform.common.EntityVersion
- All Implemented Interfaces:
IDiffableObject
,Comparable<Object>
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class EntityVersion
extends Object
implements Comparable<Object>, IDiffableObject
Convenience object to handle extension versioning.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Implementing compareTo for ExtensionInfo objects so that we can compare and sort.int
int
int
toString()
-
Constructor Details
-
EntityVersion
@ThingworxExtensionApiMethod(since={7,0,3}) public EntityVersion(String name, int major, int minor, int patch)
-
-
Method Details
-
getEntityName
-
getEntityMajor
-
getEntityMinor
-
getEntityPatch
-
getVersion
-
getDependents
-
toValueCollection
-
toString
-
getDependsOn
-
compareTo
Implementing compareTo for ExtensionInfo objects so that we can compare and sort.- Specified by:
compareTo
in interfaceComparable<Object>
- Parameters:
o
- (that) ExtensionInfo object to compare against- Returns:
- -1(this is less than that) when this' name value(based on alphabetic sort) is less than that's
name or when any of this' major, minor, or patch values are less than that's.
0 when name, major, minor, and patch are all exactly the same between this and that.
1 (this is greater than that) when this' name value(based on alphabetic sort) is greater than that's name or when any of this' major, minor, or patch values are greater than that's.
-