Class PseudoVersion

  • All Implemented Interfaces:
    IVilType

    final class PseudoVersion
    extends java.lang.Object
    implements IVilType
    Represents the internal type "Version".
    Author:
    Holger Eichelberger
    • Constructor Detail

      • PseudoVersion

        private PseudoVersion()
        Prevents external instantiation.
    • 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 considered
        v2 - 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 considered
        v2 - 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 considered
        v2 - 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 considered
        v2 - 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 considered
        v2 - 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 considered
        v2 - the second version to be considered
        Returns:
        v1 != v2
      • getType

        public static TypeDescriptor<?> getType​(Version value)
        Returns the type of value. "Overrides" PseudoAny.getType(Object).
        Parameters:
        value - the version to return the type for
        Returns:
        the type of object (null if ob is null)