Class Megabytes
- java.lang.Object
-
- com.oracle.coherence.common.util.MemorySize
-
- com.tangosol.coherence.config.unit.Megabytes
-
public class Megabytes extends com.oracle.coherence.common.util.MemorySizeMegabytesis a specializedMemorySizewhose default constructor assumes that the specified units (when a they are not specified) are measured in megabytes.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 Megabytes(int c)Constructs aMegabytesrepresenting aMemorySizemeasured in megabytes.Megabytes(com.oracle.coherence.common.util.MemorySize m)Constructs aMegabytesbased on anotherMemorySize.Megabytes(String s)Constructs aMegabytesrepresenting aMemorySizemeasured in megabytes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget()Obtain theMemorySizein megabytes.
-
-
-
Constructor Detail
-
Megabytes
public Megabytes(int c)
Constructs aMegabytesrepresenting aMemorySizemeasured in megabytes.- Parameters:
c- the number of megabytes
-
Megabytes
public Megabytes(com.oracle.coherence.common.util.MemorySize m)
Constructs aMegabytesbased on anotherMemorySize.- Parameters:
m- theMemorySize
-
-