Package com.typesafe.config
Class ConfigMemorySize
java.lang.Object
com.typesafe.config.ConfigMemorySize
An immutable class representing an amount of memory. Use
static factory methods such as
ofBytes(long)
to create instances.- Since:
- 1.3.0
-
Method Summary
-
Method Details
-
ofBytes
Constructs a ConfigMemorySize representing the given number of bytes.- Parameters:
bytes
- a number of bytes- Returns:
- an instance representing the number of bytes
- Since:
- 1.3.0
-
toBytes
public long toBytes()Gets the size in bytes.- Returns:
- how many bytes
- Since:
- 1.3.0
-
toString
-
equals
-
hashCode
public int hashCode()
-