Package com.ibm.fhir.registry.resource
Class FHIRRegistryResource.Version
- java.lang.Object
-
- com.ibm.fhir.registry.resource.FHIRRegistryResource.Version
-
- All Implemented Interfaces:
Comparable<FHIRRegistryResource.Version>
- Enclosing class:
- FHIRRegistryResource
public static class FHIRRegistryResource.Version extends Object implements 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 class
FHIRRegistryResource.Version.CompareMode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FHIRRegistryResource.Version version)
boolean
equals(Object obj)
static FHIRRegistryResource.Version
from(String version)
int
hashCode()
int
major()
int
minor()
int
patch()
String
toString()
-
-
-
Method Detail
-
major
public int major()
-
minor
public int minor()
-
patch
public int patch()
-
from
public static FHIRRegistryResource.Version from(String version)
-
compareTo
public int compareTo(FHIRRegistryResource.Version version)
- Specified by:
compareTo
in interfaceComparable<FHIRRegistryResource.Version>
-
-