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