Package com.imyeyu.io

Enum Class IOSize.Unit

java.lang.Object
java.lang.Enum<IOSize.Unit>
com.imyeyu.io.IOSize.Unit
All Implemented Interfaces:
Serializable, Comparable<IOSize.Unit>, Constable
Enclosing class:
IOSize

public static enum IOSize.Unit extends Enum<IOSize.Unit>
储存单位
Version:
2022-04-08 14:37
Author:
夜雨
  • Enum Constant Details

  • Method Details

    • values

      public static IOSize.Unit[] 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 IOSize.Unit 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

      public long toBytes(double value)
      转换字节量
      Parameters:
      value - 值
      Returns:
      该单位值字节量