列挙型定数と説明 |
---|
BYTES バイト数。 |
GIGABYTES ギガバイト。 |
KILOBYTES キロバイト。 |
MEGABYTES メガバイト。 |
TERABYTES テラバイト。 |
修飾子と型 | メソッドと説明 |
---|---|
static DataUnit | fromSuffix(java.lang.String suffix) 指定された suffix に一致する DataUnit を返します。 |
static DataUnit | valueOf(java.lang.String name) 指定された名前を持つこの型の列挙定数を返します。 |
static DataUnit[] | values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
public static final DataUnit BYTES
public static final DataUnit KILOBYTES
public static final DataUnit MEGABYTES
public static final DataUnit GIGABYTES
public static final DataUnit TERABYTES
public static DataUnit[] values()
for (DataUnit c : DataUnit.values()) System.out.println(c);
public static DataUnit valueOf(java.lang.String name)
name
- 返される列挙定数の名前。java.lang.IllegalArgumentException
- この列挙型に指定された名前の定数がない場合 java.lang.NullPointerException
- 引数が null の場合