java.lang.Object
java.lang.Enum<Versions>
io.github.bucket4j.distributed.versioning.Versions
All Implemented Interfaces:
Version, Serializable, Comparable<Versions>, Constable

public enum Versions extends Enum<Versions> implements Version
  • Enum Constant Details

    • v_7_0_0

      public static final Versions v_7_0_0
    • v_8_1_0

      public static final Versions v_8_1_0
    • v_8_10_0

      public static final Versions v_8_10_0
  • Method Details

    • values

      public static Versions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Versions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • check

      public static void check(int formatNumber, Version min, Version max)
    • max

      public static Version max(Version first, Version second)
    • max

      public static Version max(Version first, Version second, Version third)
    • checkMin

      public static void checkMin(int formatNumber, Versions min)
    • checkMax

      public static void checkMax(int formatNumber, Versions max)
    • getNumber

      public int getNumber()
      Specified by:
      getNumber in interface Version
    • getLatest

      public static Version getLatest()
    • getOldest

      public static Version getOldest()
    • byNumber

      public static Version byNumber(int number)