Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.config.unit
Class Megabytes

java.lang.Object
  extended by com.oracle.common.util.MemorySize
      extended by com.tangosol.coherence.config.unit.Megabytes


public class Megabytes
extends com.oracle.common.util.MemorySize

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 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.

Since:
Coherence 12.1.2
Author:
bo 2012.01.19

Nested Class Summary

 

Nested classes/interfaces inherited from class com.oracle.common.util.MemorySize
com.oracle.common.util.MemorySize.Magnitude

 

Constructor Summary
Megabytes(int c)
          Constructs a Megabytes representing a MemorySize measured in megabytes.
Megabytes(com.oracle.common.util.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.util.MemorySize
as, equals, getByteCount, hashCode, toString, toString

 

Constructor Detail

Megabytes

public Megabytes(int c)
Constructs a Megabytes representing a MemorySize measured in megabytes.
Parameters:
c - the number of megabytes

Megabytes

public Megabytes(com.oracle.common.util.MemorySize m)
Constructs a Megabytes based on another MemorySize.
Parameters:
m - the MemorySize

Megabytes

public Megabytes(java.lang.String s)
Constructs a Megabytes representing a MemorySize measured in megabytes.
Parameters:
s - the number of megabytes or other MemorySize when magnitudes are specified
See Also:
MemorySize.MemorySize(String, Magnitude)

Method Detail

get

public long get()
Obtain the MemorySize in megabytes.
Returns:
the number of megabytes in the MemorySize

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.