DataSize
for correct SI and IEC prefixes.@Deprecated public class Size extends Object implements Comparable<Size>, Serializable
Modifier and Type | Method and Description |
---|---|
static Size |
bytes(long count)
Deprecated.
|
int |
compareTo(Size other)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
static Size |
fromDataSize(DataSize dataSize)
Deprecated.
|
long |
getQuantity()
Deprecated.
|
SizeUnit |
getUnit()
Deprecated.
|
static Size |
gigabytes(long count)
Deprecated.
|
int |
hashCode()
Deprecated.
|
static Size |
kilobytes(long count)
Deprecated.
|
static Size |
megabytes(long count)
Deprecated.
|
static Size |
parse(String size)
Deprecated.
|
static Size |
terabytes(long count)
Deprecated.
|
long |
toBytes()
Deprecated.
|
DataSize |
toDataSize()
Deprecated.
|
long |
toGigabytes()
Deprecated.
|
long |
toKilobytes()
Deprecated.
|
long |
toMegabytes()
Deprecated.
|
String |
toString()
Deprecated.
|
long |
toTerabytes()
Deprecated.
|
public static Size bytes(long count)
public static Size kilobytes(long count)
public static Size megabytes(long count)
public static Size gigabytes(long count)
public static Size terabytes(long count)
public long getQuantity()
public SizeUnit getUnit()
public long toBytes()
public long toKilobytes()
public long toMegabytes()
public long toGigabytes()
public long toTerabytes()
public int compareTo(Size other)
compareTo
in interface Comparable<Size>
public DataSize toDataSize()
Copyright © 2020. All rights reserved.