Package io.datarouter.bytes
Class ByteLength
java.lang.Object
io.datarouter.bytes.ByteLength
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ByteLength.Unit[]getAscValues(ByteLength.ByteUnitSystem byteUnitSystem) inthashCode()static ByteLengthofBytes(long input) static ByteLengthofGB(long input) static ByteLengthofGiB(long input) static ByteLengthofKB(long input) static ByteLengthofKiB(long input) static ByteLengthofMB(long input) static ByteLengthofMiB(long input) static ByteLengthofPB(long input) static ByteLengthofPiB(long input) static ByteLengthofTB(long input) static ByteLengthofTiB(long input) static ByteLengthsum(ByteLength... byteLengths) static ByteLengthsum(Collection<ByteLength> byteLengths) longtoBytes()doubleinttoDisplay(ByteLength.ByteUnitSystem byteUnitSystem) longtoGB()longtoGiB()longtoKB()longtoKiB()longtoMB()longtoMiB()longtoPB()longtoPiB()toString()longtoTB()longtoTiB()double
-
Field Details
-
MIN
-
MAX
-
-
Method Details
-
toBytes
public long toBytes() -
toBytesInt
public int toBytesInt() -
toBytesDouble
public double toBytesDouble() -
hashCode
public int hashCode() -
equals
-
toString
-
toDisplay
-
toDisplay
-
getAscValues
-
ofBytes
-
ofKB
-
ofMB
-
ofGB
-
ofTB
-
ofPB
-
ofKiB
-
ofMiB
-
ofGiB
-
ofTiB
-
ofPiB
-
toKB
public long toKB() -
toMB
public long toMB() -
toGB
public long toGB() -
toTB
public long toTB() -
toPB
public long toPB() -
toKiB
public long toKiB() -
toMiB
public long toMiB() -
toGiB
public long toGiB() -
toTiB
public long toTiB() -
toPiB
public long toPiB() -
toTiBDouble
public double toTiBDouble() -
sum
-
sum
-