java.lang.Object
com.aoapps.hodgepodge.io.ByteCount
- All Implemented Interfaces:
Serializable
,Comparable<ByteCount>
A
ByteCount
consists of a long quantity and an optional unit.- Author:
- AO Industries, Inc.
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ByteCount
public ByteCount(long byteCount) -
ByteCount
- Parameters:
unit
- ifnull
, defaults to bits per second.
-
ByteCount
-
-
Method Details
-
valueOf
-
equals
Two BitRates are equal when they have the same quantity and the same unit. -
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ByteCount>
-
getQuantity
public long getQuantity() -
getUnit
-
getByteCount
public long getByteCount()
-