Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class BitRate extends Object implements Serializable, Comparable<BitRate>
BitRate consists of a long quantity and an optional unit.| Modifier and Type | Class and Description |
|---|---|
static class |
BitRate.Unit |
| Constructor and Description |
|---|
BitRate(long bitRate) |
BitRate(long quantity,
BitRate.Unit unit) |
BitRate(String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BitRate o) |
boolean |
equals(Object O)
Two BitRates are equal when they have the same quantity and the same unit.
|
Long |
getBitRate() |
long |
getQuantity() |
BitRate.Unit |
getUnit() |
int |
hashCode() |
String |
toString() |
static BitRate |
valueOf(String value) |
public BitRate(long bitRate)
public BitRate(long quantity,
BitRate.Unit unit)
unit - if null, defaults to bits per second.public BitRate(String value)
public boolean equals(Object O)
equals in class ObjectcompareTo(com.aoindustries.io.BitRate)public int compareTo(BitRate o)
compareTo in interface Comparable<BitRate>public long getQuantity()
public BitRate.Unit getUnit()
public Long getBitRate()
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.