public class DefaultMetadataVersion extends Object implements MetadataVersion
Constructor and Description |
---|
DefaultMetadataVersion(String versionString)
Create a new instance with the given version string
|
DefaultMetadataVersion(String major,
String minor,
String micro)
Create a new instance with the given version segments
|
Modifier and Type | Method and Description |
---|---|
boolean |
compareTo(MetadataVersion otherVersion) |
boolean |
equals(Object obj) |
String |
getMajor() |
MetadataVersion |
getMaximumVersion() |
String |
getMicro() |
MetadataVersion |
getMinimumVersion() |
String |
getMinor() |
int |
hashCode() |
boolean |
hasWildCards()
Test whether the minor or micro segments are wildcards '*'
|
boolean |
isGreaterThan(MetadataVersion otherVersion)
Is this version greater than the given version
Wildcards will cause the result to return false since either
this or otherVersion could be the greater depending on the
value given to the wildcard.
|
boolean |
isGreaterThanOrEqualTo(MetadataVersion otherVersion)
Convenience that delegates to
MetadataVersion.compareTo(MetadataVersion)
and MetadataVersion.isGreaterThan(MetadataVersion) . |
boolean |
isLessThan(MetadataVersion otherVersion)
Is this version less than the given version
Wildcards will cause the result to return false since either
this or otherVersion could be the lesser depending on the
value given to the wildcard.
|
boolean |
isLessThanOrEqualTo(MetadataVersion otherVersion)
Convenience that delegates to
MetadataVersion.compareTo(MetadataVersion)
and MetadataVersion.isLessThan(MetadataVersion) . |
boolean |
isSevenInstance()
Is this a 7 teiid instance?
|
String |
toString() |
public DefaultMetadataVersion(String major, String minor, String micro)
major
- the major versionminor
- the minor versionmicro
- the micro versionpublic DefaultMetadataVersion(String versionString)
versionString
- the version stringpublic String getMajor()
getMajor
in interface MetadataVersion
public String getMinor()
getMinor
in interface MetadataVersion
public String getMicro()
getMicro
in interface MetadataVersion
public boolean hasWildCards()
MetadataVersion
hasWildCards
in interface MetadataVersion
public boolean compareTo(MetadataVersion otherVersion)
compareTo
in interface MetadataVersion
public boolean isSevenInstance()
MetadataVersion
isSevenInstance
in interface MetadataVersion
public MetadataVersion getMinimumVersion()
getMinimumVersion
in interface MetadataVersion
public MetadataVersion getMaximumVersion()
getMaximumVersion
in interface MetadataVersion
public boolean isGreaterThan(MetadataVersion otherVersion)
MetadataVersion
isGreaterThan
in interface MetadataVersion
public boolean isLessThan(MetadataVersion otherVersion)
MetadataVersion
isLessThan
in interface MetadataVersion
public boolean isGreaterThanOrEqualTo(MetadataVersion otherVersion)
MetadataVersion
MetadataVersion.compareTo(MetadataVersion)
and MetadataVersion.isGreaterThan(MetadataVersion)
.isGreaterThanOrEqualTo
in interface MetadataVersion
public boolean isLessThanOrEqualTo(MetadataVersion otherVersion)
MetadataVersion
MetadataVersion.compareTo(MetadataVersion)
and MetadataVersion.isLessThan(MetadataVersion)
.isLessThanOrEqualTo
in interface MetadataVersion
Copyright © 2013–2019. All rights reserved.