Interface Version

All Superinterfaces:
Comparable<Version>, Serializable
All Known Implementing Classes:
VersionImpl

public interface Version extends Comparable<Version>, Serializable
The version of an archived media package or element. Versions have a natural order where v1 < v2 means that v1 is older that v2.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object that)
    A version must implement hashCode and equals.
    int
    A version must implement hashCode and equals.
    boolean
    Check if this version is older than v.
    boolean
    Check if this version is younger than v.
    Serialize to a string.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • isOlder

      boolean isOlder(Version v)
      Check if this version is older than v.
    • isYounger

      boolean isYounger(Version v)
      Check if this version is younger than v.
    • equals

      boolean equals(Object that)
      A version must implement hashCode and equals.
      Overrides:
      equals in class Object
    • hashCode

      int hashCode()
      A version must implement hashCode and equals.
      Overrides:
      hashCode in class Object
    • toString

      String toString()
      Serialize to a string. This is the inverse function of AssetManager.toVersion(String).
      Overrides:
      toString in class Object