public class Bytes
extends com.oracle.coherence.common.util.MemorySize
Bytes is a specialized MemorySize whose default constructor
assumes that the specified units (when a magnitude is not specified) are always bytes.
Note: This class is provided to simplify and support backwards compatibility
during the injection of MemorySizes into appropriate classes. This
class is not designed for general purpose representation of
capacity. For general purpose representations of memory capacity, please use the
MemorySize class.
| Constructor and Description |
|---|
Bytes(int c)
Constructs a
Bytes representing a MemorySize measured in bytes. |
Bytes(com.oracle.coherence.common.util.MemorySize m)
Constructs a
Bytes based on another MemorySize. |
Bytes(String s)
Constructs a
Bytes representing a MemorySize measured in bytes. |
| Modifier and Type | Method and Description |
|---|---|
long |
get()
Obtain the
MemorySize in bytes. |