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.MemorySizeBytesis a specializedMemorySizewhose 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 theMemorySizeclass.- Since:
- Coherence 12.1.2
- Author:
- bo 2012.01.19
-
-
Constructor Summary
Constructors Constructor Description Bytes(int c)Constructs aBytesrepresenting aMemorySizemeasured in bytes.Bytes(com.oracle.coherence.common.util.MemorySize m)Constructs aBytesbased on anotherMemorySize.Bytes(String s)Constructs aBytesrepresenting aMemorySizemeasured in bytes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget()Obtain theMemorySizein bytes.
-