Package com.daml.ledger.javaapi.data
Class PackageVersion
- java.lang.Object
-
- com.daml.ledger.javaapi.data.PackageVersion
-
- All Implemented Interfaces:
java.lang.Comparable<PackageVersion>
public class PackageVersion extends java.lang.Object implements java.lang.Comparable<PackageVersion>
-
-
Constructor Summary
Constructors Constructor Description PackageVersion(int[] segments)
Creates a PackageVersion from the provided segments.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PackageVersion other)
boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
static PackageVersion
unsafeFromString(@NonNull java.lang.String version)
Parses the provided String value into a 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.
-
compareTo
public int compareTo(PackageVersion other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PackageVersion>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-