Package-level declarations
Types
Provides binary (base-1024) data size constants, following IEC standards (e.g., KiB, MiB). This is typically used for memory-related calculations, such as RAM or certain software contexts.
Defines standard data size units in bytes, providing constants for common storage measurements. Implementations of this interface specify whether the units follow binary (base-1024) or decimal (base-1000) conventions. These constants are useful for calculations involving file sizes, memory, or network data.
Provides decimal (base-1000) data size constants, following SI standards (e.g., KB, MB). This is typically used for file systems, network speeds, and other contexts where base-1000 units are standard.
Marks number conversion operations that may be unsafe due to potential overflow.
Properties
Safely converts a Double to exabytes (EB, 1000^6 bytes) using BigDecimal.
Safely converts an Int to exabytes (EB, 1000^6 bytes) using BigInteger.
Safely converts a Long to exabytes (EB, 1000^6 bytes) using BigInteger.
Safely converts a Double to exbibytes (EiB, 1024^6 bytes) using BigDecimal.
Safely converts an Int to exbibytes (EiB, 1024^6 bytes) using BigInteger.
Safely converts a Long to exbibytes (EiB, 1024^6 bytes) using BigInteger.
Safely converts a Double to petabytes (PB, 1000^5 bytes) using BigDecimal.
Safely converts an Int to petabytes (PB, 1000^5 bytes) using BigInteger.
Safely converts a Long to petabytes (PB, 1000^5 bytes) using BigInteger.
Safely converts a Double to pebibytes (PiB, 1024^5 bytes) using BigDecimal.
Safely converts an Int to pebibytes (PiB, 1024^5 bytes) using BigInteger.
Safely converts a Long to pebibytes (PiB, 1024^5 bytes) using BigInteger.