|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.oracle.common.io.MemorySize
com.tangosol.coherence.config.unit.Megabytes
public class Megabytes
Megabytes
is a specialized MemorySize
whose 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 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 the MemorySize
class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.oracle.common.io.MemorySize |
---|
com.oracle.common.io.MemorySize.Magnitude |
Constructor Summary | |
---|---|
Megabytes(int c) Constructs a Megabytes representing a MemorySize measured in megabytes. |
|
Megabytes(com.oracle.common.io.MemorySize m) Constructs a Megabytes based on another MemorySize . |
|
Megabytes(java.lang.String s) Constructs a Megabytes representing a MemorySize measured in megabytes. |
Method Summary | |
---|---|
long |
get() Obtain the MemorySize in megabytes. |
Methods inherited from class com.oracle.common.io.MemorySize |
---|
as, equals, getByteCount, hashCode, toString, toString |
Constructor Detail |
---|
public Megabytes(int c)
Megabytes
representing a MemorySize
measured in megabytes.
c
- the number of megabytespublic Megabytes(com.oracle.common.io.MemorySize m)
Megabytes
based on another MemorySize
.
m
- the MemorySize
public Megabytes(java.lang.String s)
Megabytes
representing a MemorySize
measured in megabytes.
s
- the number of megabytes or other MemorySize
when magnitudes are specifiedMemorySize.MemorySize(String, Magnitude)
Method Detail |
---|
public long get()
MemorySize
in megabytes.MemorySize
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |