Class VersionImpl
java.lang.Object
org.opencastproject.assetmanager.impl.VersionImpl
- All Implemented Interfaces:
Serializable,Comparable<Version>,Version
The version of an archived media package or element.
This class encapsulates the actual data type used for identifying versions to minimize API changes.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanA version must implement hashCode and equals.inthashCode()A version must implement hashCode and equals.booleanCheck if this version is older thanv.booleanCheck if this version is younger thanv.static VersionImplmk(long nr) Constructor function.static VersionImplstatic VersionImplnext(long latest) Create the next version after thelatest.toString()Serialize to a string.longvalue()
-
Field Details
-
FIRST
-
-
Constructor Details
-
VersionImpl
public VersionImpl(long nr)
-
-
Method Details
-
mk
Constructor function. -
mk
-
next
Create the next version after thelatest. -
value
public long value() -
isOlder
Description copied from interface:VersionCheck if this version is older thanv. -
isYounger
Description copied from interface:VersionCheck if this version is younger thanv. -
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-
equals
Description copied from interface:VersionA version must implement hashCode and equals. -
hashCode
public int hashCode()Description copied from interface:VersionA version must implement hashCode and equals. -
toString
Description copied from interface:VersionSerialize to a string. This is the inverse function ofAssetManager.toVersion(String).
-