Enum Class ByteSizeUnit

java.lang.Object
java.lang.Enum<ByteSizeUnit>
net.bluemind.utils.ByteSizeUnit
All Implemented Interfaces:
Serializable, Comparable<ByteSizeUnit>, Constable

public enum ByteSizeUnit extends Enum<ByteSizeUnit>
  • Enum Constant Details Link icon

  • Method Details Link icon

    • values Link icon

      public static ByteSizeUnit[] 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 Link icon

      public static ByteSizeUnit 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
    • toBytes Link icon

      public abstract long toBytes(long size)
    • toKB Link icon

      public abstract long toKB(long size)
    • toMB Link icon

      public abstract long toMB(long size)
    • toGB Link icon

      public abstract long toGB(long size)
    • toTB Link icon

      public abstract long toTB(long size)
    • toPB Link icon

      public abstract long toPB(long size)
    • fromBytes Link icon

      public abstract long fromBytes(long size)
    • fromKB Link icon

      public abstract long fromKB(long size)
    • fromMB Link icon

      public abstract long fromMB(long size)
    • fromGB Link icon

      public abstract long fromGB(long size)
    • fromTB Link icon

      public abstract long fromTB(long size)
    • fromPB Link icon

      public abstract long fromPB(long size)
    • getSuffix Link icon

      public abstract String getSuffix()