mirror of
https://github.com/lightbend/config.git
synced 2025-03-13 18:50:45 +08:00
added Javadocs
This commit is contained in:
parent
50c86cf309
commit
a789d3884c
@ -33,6 +33,12 @@ public final class ConfigMemorySize {
|
||||
return new ConfigMemorySize(bytes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a ConfigMemorySize representing the given
|
||||
* number of bytes.
|
||||
* @param bytes a number of bytes
|
||||
* @return an instance representing the number of bytes
|
||||
*/
|
||||
public static ConfigMemorySize ofBytes(long bytes) {
|
||||
return new ConfigMemorySize(BigInteger.valueOf(bytes));
|
||||
}
|
||||
@ -48,6 +54,10 @@ public final class ConfigMemorySize {
|
||||
return bytes.longValueExact();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the size in bytes.
|
||||
* @return how many bytes
|
||||
*/
|
||||
public BigInteger getBytes() {
|
||||
return bytes;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user