Class Version

java.lang.Object
com.zenith.plugin.api.Version
All Implemented Interfaces:
Comparable<Version>

public class Version extends Object implements Comparable<Version>
  • Constructor Details

    • Version

      public Version(String version)
    • Version

      public Version(int major, int minor, int patch)
  • Method Details

    • getMajor

      public int getMajor()
    • getMinor

      public int getMinor()
    • getPatch

      public int getPatch()
    • compareTo

      public int compareTo(@NotNull @NotNull Version o)
      Specified by:
      compareTo in interface Comparable<Version>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public static boolean validate(String version)
    • getVersion

      public String getVersion()
    • getParts

      public int[] getParts()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object