|
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.Bytes
public class Bytes
Bytes
is a specialized MemorySize
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 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 | |
---|---|
Bytes(int c) Constructs a Bytes representing a MemorySize measured in bytes. |
|
Bytes(com.oracle.common.io.MemorySize m) Constructs a Bytes based on another MemorySize . |
|
Bytes(java.lang.String s) Constructs a Bytes representing a MemorySize measured in bytes. |
Method Summary | |
---|---|
long |
get() Obtain the MemorySize in bytes. |
Methods inherited from class com.oracle.common.io.MemorySize |
---|
as, equals, getByteCount, hashCode, toString, toString |
Constructor Detail |
---|
public Bytes(int c)
Bytes
representing a MemorySize
measured in bytes.
c
- the number of bytespublic Bytes(com.oracle.common.io.MemorySize m)
Bytes
based on another MemorySize
.
m
- the MemorySize
public Bytes(java.lang.String s)
Bytes
representing a MemorySize
measured in bytes.
s
- the number of bytes or other MemorySize
when magnitudes are specifiedMemorySize.MemorySize(String, Magnitude)
Method Detail |
---|
public long get()
MemorySize
in bytes.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 |