Package com.github.joschi.jadconfig.util
Class Size
java.lang.Object
com.github.joschi.jadconfig.util.Size
- All Implemented Interfaces:
Comparable<Size>
-
Method Summary
Modifier and TypeMethodDescriptionstatic Sizebytes(long count) intbooleanlonggetUnit()static Sizegigabytes(long count) inthashCode()static Sizekilobytes(long count) static Sizemegabytes(long count) static Sizestatic Sizepetabytes(long count) static Sizeterabytes(long count) longtoBytes()longlonglonglongtoString()long
-
Method Details
-
bytes
-
kilobytes
-
megabytes
-
gigabytes
-
terabytes
-
petabytes
-
parse
-
getQuantity
public long getQuantity() -
getUnit
-
toBytes
public long toBytes() -
toKilobytes
public long toKilobytes() -
toMegabytes
public long toMegabytes() -
toGigabytes
public long toGigabytes() -
toTerabytes
public long toTerabytes() -
toPetabytes
public long toPetabytes() -
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Size>
-