Class Bytes
- java.lang.Object
-
- com.oracle.coherence.common.util.MemorySize
-
- com.tangosol.coherence.config.unit.Bytes
-
public class Bytes extends com.oracle.coherence.common.util.MemorySize
Bytes
is a specializedMemorySize
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
MemorySize
s into appropriate classes. This class is not designed for general purpose representation of capacity. For general purpose representations of memory capacity, please use theMemorySize
class.- Since:
- Coherence 12.1.2
- Author:
- bo 2012.01.19
-
-
Constructor Summary
Constructors Constructor Description Bytes(int c)
Constructs aBytes
representing aMemorySize
measured in bytes.Bytes(com.oracle.coherence.common.util.MemorySize m)
Constructs aBytes
based on anotherMemorySize
.Bytes(String s)
Constructs aBytes
representing aMemorySize
measured in bytes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
get()
Obtain theMemorySize
in bytes.
-