Class PackageVersion

  • All Implemented Interfaces:
    java.lang.Comparable<PackageVersion>

    public class PackageVersion
    extends java.lang.Object
    implements java.lang.Comparable<PackageVersion>
    • Constructor Detail

      • PackageVersion

        public PackageVersion​(int[] segments)
        Creates a PackageVersion from the provided segments.

        This method is meant only for internal API usage. It is marked unsafe as it does not validate the input according to the accepted ledger format of PackageVersion.

    • Method Detail

      • unsafeFromString

        public static PackageVersion unsafeFromString​(@NonNull java.lang.String version)
        Parses the provided String value into a PackageVersion.

        This method is meant only for internal API usage. It is marked unsafe as it does not validate the input according to the accepted ledger format of PackageVersion.

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object