Enum Class IntFormat

java.lang.Object
java.lang.Enum<IntFormat>
mcp.mobius.waila.api.IntFormat
All Implemented Interfaces:
Serializable, Comparable<IntFormat>, Constable, Predicate<String>

public enum IntFormat extends Enum<IntFormat> implements Predicate<String>
  • Enum Constant Details

    • BINARY

      public static final IntFormat BINARY
    • OCTAL

      public static final IntFormat OCTAL
    • DECIMAL

      public static final IntFormat DECIMAL
    • HEXADECIMAL

      public static final IntFormat HEXADECIMAL
    • RGB_HEX

      public static final IntFormat RGB_HEX
    • ARGB_HEX

      public static final IntFormat ARGB_HEX
  • Field Details

    • radix

      public final int radix
    • regex

      public final String regex
  • Method Details

    • values

      public static IntFormat[] 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 IntFormat 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
    • serialize

      public String serialize(int integer)
    • deserialize

      public int deserialize(String string)
    • test

      public boolean test(String string)
      Specified by:
      test in interface Predicate<String>