Package | Description |
---|---|
ra.util | |
ra.util.logging |
Modifier and Type | Method and Description |
---|---|
static SpaceUnit |
SpaceUnit.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpaceUnit[] |
SpaceUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
long |
SpaceUnit.convert(long value,
SpaceUnit unit)
For example, to convert 2048 bytes to KB, use: SpaceUnit.KB.convert(2048L,
SpaceUnit.Bytes).
|
double |
SpaceUnit.convertDecimal(double value,
SpaceUnit unit)
For example, to convert 2048 bytes to KB, use: SpaceUnit.KB.convert(2048L,
SpaceUnit.Bytes).
|
Modifier and Type | Method and Description |
---|---|
void |
LogRecord.setMaxFileSize(long space,
SpaceUnit unit)
Setting the limit size of Log file.
|
void |
LogEveryDay.setMaxFileSize(long space,
SpaceUnit unit)
Setting the limit size of Log file.
|