public class ByteCapacity extends Object implements Comparable<ByteCapacity>
| Modifier and Type | Method and Description |
|---|---|
static ByteCapacity |
B(long bytes) |
int |
compareTo(ByteCapacity other) |
boolean |
equals(Object o) |
static ByteCapacity |
from(String value) |
static ByteCapacity |
GB(long gigabytes) |
int |
hashCode() |
static ByteCapacity |
kB(long kilobytes) |
static ByteCapacity |
MB(long megabytes) |
static ByteCapacity |
TB(long terabytes) |
long |
toBytes() |
String |
toString() |
public static ByteCapacity B(long bytes)
public static ByteCapacity kB(long kilobytes)
public static ByteCapacity MB(long megabytes)
public static ByteCapacity GB(long gigabytes)
public static ByteCapacity TB(long terabytes)
public long toBytes()
public static ByteCapacity from(String value)
public int compareTo(ByteCapacity other)
compareTo in interface Comparable<ByteCapacity>Copyright © 2024 Broadcom Inc. and/or its subsidiaries. All rights reserved.