Class PseudoVersion
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.PseudoVersion
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePseudoVersion()Prevents external instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanequals(Version v1, Version v2)Represents the equality operation for versions.static TypeDescriptor<?>getType(Version value)Returns the type ofvalue.static booleangreaterEqualThan(Version v1, Version v2)Represents the greater-then-equals comparison for versions.static booleangreaterThan(Version v1, Version v2)Represents the greater comparison for versions.static booleanlessEqualThan(Version v1, Version v2)Represents the less-then-equals comparison for versions.static booleanlessThan(Version v1, Version v2)Represents the less-then comparison for versions.static booleanunequals(Version v1, Version v2)Represents the unequality operation for versions.
-
-
-
Method Detail
-
lessThan
public static boolean lessThan(Version v1, Version v2)
Represents the less-then comparison for versions.- Parameters:
v1- the first version to be consideredv2- the second version to be considered- Returns:
- v1 < v2
-
lessEqualThan
public static boolean lessEqualThan(Version v1, Version v2)
Represents the less-then-equals comparison for versions.- Parameters:
v1- the first version to be consideredv2- the second version to be considered- Returns:
- v1 <= v2
-
greaterEqualThan
public static boolean greaterEqualThan(Version v1, Version v2)
Represents the greater-then-equals comparison for versions.- Parameters:
v1- the first version to be consideredv2- the second version to be considered- Returns:
- v1 >= v2
-
greaterThan
public static boolean greaterThan(Version v1, Version v2)
Represents the greater comparison for versions.- Parameters:
v1- the first version to be consideredv2- the second version to be considered- Returns:
- v1 >= v2
-
equals
public static boolean equals(Version v1, Version v2)
Represents the equality operation for versions.- Parameters:
v1- the first version to be consideredv2- the second version to be considered- Returns:
- v1 == v2
-
unequals
public static boolean unequals(Version v1, Version v2)
Represents the unequality operation for versions.- Parameters:
v1- the first version to be consideredv2- the second version to be considered- Returns:
- v1 != v2
-
getType
public static TypeDescriptor<?> getType(Version value)
Returns the type ofvalue. "Overrides"PseudoAny.getType(Object).- Parameters:
value- the version to return the type for- Returns:
- the type of object (null if
obis null)
-
-