Class FHIRRegistryResource.Version
- java.lang.Object
-
- org.linuxforhealth.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 class
FHIRRegistryResource.Version.CompareMode
-
Field Summary
Fields Modifier and Type Field Description static FHIRRegistryResource.Version
NO_VERSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FHIRRegistryResource.Version version)
boolean
equals(java.lang.Object obj)
static FHIRRegistryResource.Version
from(java.lang.String version)
int
hashCode()
int
major()
int
minor()
int
patch()
java.lang.String
toString()
-
-
-
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:
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
-
compareTo
public int compareTo(FHIRRegistryResource.Version version)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FHIRRegistryResource.Version>
-
-