public static enum FileUtils.UNITS extends Enum<FileUtils.UNITS>
Modifier and Type | Method and Description |
---|---|
long |
calculate(long value) |
static FileUtils.UNITS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileUtils.UNITS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileUtils.UNITS MEGABYTE
public static final FileUtils.UNITS KILOBYTE
public static final FileUtils.UNITS GIGABYTE
public static FileUtils.UNITS[] values()
for (FileUtils.UNITS c : FileUtils.UNITS.values()) System.out.println(c);
public static FileUtils.UNITS valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long calculate(long value)
Copyright © 2021. All rights reserved.