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