Package nl.knaw.dans.bagit.domain
Class Version
java.lang.Object
nl.knaw.dans.bagit.domain.Version
- All Implemented Interfaces:
Comparable<Version>
The version of the bagit specification used to create the bag.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
getMajor()
int
getMinor()
int
hashCode()
boolean
boolean
boolean
isSameOrNewer
(Version version) boolean
isSameOrOlder
(Version version) static Version
toString()
-
Field Details
-
major
public final int major -
minor
public final int minor -
cachedToString
-
-
Constructor Details
-
Version
public Version(int major, int minor)
-
-
Method Details
-
LATEST_BAGIT_VERSION
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Version>
-
hashCode
public int hashCode() -
equals
-
isNewer
-
isSameOrNewer
-
isOlder
-
isSameOrOlder
-
getMajor
public int getMajor() -
getMinor
public int getMinor()
-