public class Size extends Object implements Comparable<Size>
Modifier and Type | Method and Description |
---|---|
static Size |
bytes(long count) |
int |
compareTo(Size other) |
boolean |
equals(Object obj) |
long |
getQuantity() |
SizeUnit |
getUnit() |
static Size |
gigabytes(long count) |
int |
hashCode() |
static Size |
kilobytes(long count) |
static Size |
megabytes(long count) |
static Size |
parse(String size) |
static Size |
terabytes(long count) |
long |
toBytes() |
long |
toGigabytes() |
long |
toKilobytes() |
long |
toMegabytes() |
String |
toString() |
long |
toTerabytes() |
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>
Copyright © 2017. All rights reserved.