public static final class DataStorageSpec.LongMebibytesBound extends DataStorageSpec
DataStorageSpec.DataStorageUnit, DataStorageSpec.IntBytesBound, DataStorageSpec.IntKibibytesBound, DataStorageSpec.IntMebibytesBound, DataStorageSpec.LongBytesBound, DataStorageSpec.LongMebibytesBound
Constructor and Description |
---|
LongMebibytesBound(long mebibytes)
Creates a
DataStorageSpec.LongMebibytesBound of the specified amount in mebibytes. |
LongMebibytesBound(long quantity,
DataStorageSpec.DataStorageUnit unit)
Creates a
DataStorageSpec.LongMebibytesBound of the specified amount in the specified unit. |
LongMebibytesBound(java.lang.String value)
Creates a
DataStorageSpec.LongMebibytesBound of the specified amount. |
Modifier and Type | Method and Description |
---|---|
long |
toBytes() |
long |
toKibibytes() |
long |
toMebibytes() |
public LongMebibytesBound(java.lang.String value)
DataStorageSpec.LongMebibytesBound
of the specified amount.value
- the data storagepublic LongMebibytesBound(long quantity, DataStorageSpec.DataStorageUnit unit)
DataStorageSpec.LongMebibytesBound
of the specified amount in the specified unit.quantity
- where quantity shouldn't be bigger than Long.MAX_VALUE - 1 in mebibytesunit
- in which the provided quantity ispublic LongMebibytesBound(long mebibytes)
DataStorageSpec.LongMebibytesBound
of the specified amount in mebibytes.mebibytes
- where mebibytes shouldn't be bigger than Long.MAX_VALUE-1Copyright © 2009- The Apache Software Foundation