Package com.ibm.fhir.registry.resource
Class FHIRRegistryResource.Version
- java.lang.Object
-
- com.ibm.fhir.registry.resource.FHIRRegistryResource.Version
-
- All Implemented Interfaces:
java.lang.Comparable<FHIRRegistryResource.Version>
- Enclosing class:
- FHIRRegistryResource
public static class FHIRRegistryResource.Version extends java.lang.Object implements java.lang.Comparable<FHIRRegistryResource.Version>
Represents a version that can either be lexical or follow the Semantic Versioning format
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFHIRRegistryResource.Version.CompareMode
-
Field Summary
Fields Modifier and Type Field Description static FHIRRegistryResource.VersionNO_VERSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FHIRRegistryResource.Version version)booleanequals(java.lang.Object obj)static FHIRRegistryResource.Versionfrom(java.lang.String version)inthashCode()intmajor()intminor()intpatch()java.lang.StringtoString()
-
-
-
Field Detail
-
NO_VERSION
public static final FHIRRegistryResource.Version NO_VERSION
-
-
Method Detail
-
major
public int major()
-
minor
public int minor()
-
patch
public int patch()
-
from
public static FHIRRegistryResource.Version from(java.lang.String version)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(FHIRRegistryResource.Version version)
- Specified by:
compareToin interfacejava.lang.Comparable<FHIRRegistryResource.Version>
-
-