Package | Description |
---|---|
com.kamontat.constants | |
com.kamontat.object | |
com.kamontat.utilities |
Modifier and Type | Method and Description |
---|---|
SizeUnitType |
SizeUnit.getType() |
static SizeUnitType |
SizeUnitType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SizeUnitType[] |
SizeUnitType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
String |
SizeUnit.getString(SizeUnitType type)
get string of specify input type
|
SizeUnit |
SizeUnit.setType(SizeUnitType type)
set new type and return this
|
static SizeUnit |
SizeUnit.valueOf(String s,
SizeUnitType type)
get string that must contain unit of file size and convert it to
SizeUnit |
Modifier and Type | Method and Description |
---|---|
SizeUnitType |
Size.getType() |
Modifier and Type | Method and Description |
---|---|
Size |
Size.convertTo(SizeUnitType type)
convert current type to newType
|
Constructor and Description |
---|
Size(BigDecimal size,
SizeUnit unit,
SizeUnitType type) |
Modifier and Type | Method and Description |
---|---|
static Size |
SizeUtil.getSize(long size,
SizeUnit unit,
SizeUnitType type)
get file size
|
static String |
SizeUtil.toMinimumByte(long bytes,
SizeUnitType type)
change byte to minimum size
From: stackoverflow |
Copyright © 2017. All rights reserved.