java.lang.Object
com.aoapps.hodgepodge.io.BitRate
- All Implemented Interfaces:
Serializable
,Comparable<BitRate>
A
BitRate
consists of a long quantity and an optional unit.- Author:
- AO Industries, Inc.
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BitRate
public BitRate(long bitRate) -
BitRate
- Parameters:
unit
- ifnull
, defaults to bits per second.
-
BitRate
-
-
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<BitRate>
-
getQuantity
public long getQuantity() -
getUnit
-
getBitRate
public long getBitRate()
-