Enum Class BytesUnit

java.lang.Object
java.lang.Enum<BytesUnit>
org.graylog2.indexer.datastream.policy.actions.BytesUnit
All Implemented Interfaces:
Serializable, Comparable<BytesUnit>, Constable

public enum BytesUnit extends Enum<BytesUnit>
Formats byte sizes using accepted OpenSearch values. ...
  • Enum Constant Details

    • PEBIBYTES

      public static final BytesUnit PEBIBYTES
    • TEBIBYTES

      public static final BytesUnit TEBIBYTES
    • GIBIBYTES

      public static final BytesUnit GIBIBYTES
    • MEBIBYTES

      public static final BytesUnit MEBIBYTES
    • KIBIBYTES

      public static final BytesUnit KIBIBYTES
    • BYTES

      public static final BytesUnit BYTES
  • Method Details

    • values

      public static BytesUnit[] 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 BytesUnit 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
    • format

      public String format(long size)