Class SnapshotVersion

java.lang.Object
com.comphenix.protocol.utility.SnapshotVersion
All Implemented Interfaces:
Serializable, Comparable<SnapshotVersion>

public class SnapshotVersion extends Object implements Comparable<SnapshotVersion>, Serializable
Used to parse a snapshot version.
See Also:
  • Constructor Details

    • SnapshotVersion

      public SnapshotVersion(String version)
  • Method Details

    • getSnapshotWeekVersion

      public int getSnapshotWeekVersion()
      Retrieve the snapshot version within a week, starting at zero.
      Returns:
      The weekly version
    • getSnapshotDate

      public Date getSnapshotDate()
      Retrieve the week this snapshot was released.
      Returns:
      The week.
    • getSnapshotString

      public String getSnapshotString()
      Retrieve the raw snapshot string (yy'w'ww[a-z]).
      Returns:
      The snapshot string.
    • compareTo

      public int compareTo(SnapshotVersion o)
      Specified by:
      compareTo in interface Comparable<SnapshotVersion>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object