@Beta public enum DataRateUnit extends Enum<DataRateUnit>
| Enum Constant and Description | 
|---|
BPS
Bit per second. 
 | 
GBPS
Gigabit per second. 
 | 
KBPS
Kilobit per second. 
 | 
MBPS
Megabit per second. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
multiplier()
Returns the multiplier to use, when converting value of this unit to bps. 
 | 
double | 
toBitsPerSecond(double v)
Converts given value in this unit to bits per seconds. 
 | 
long | 
toBitsPerSecond(long v)
Converts given value in this unit to bits per seconds. 
 | 
static DataRateUnit | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static DataRateUnit[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final DataRateUnit BPS
public static final DataRateUnit KBPS
public static final DataRateUnit MBPS
public static final DataRateUnit GBPS
public static DataRateUnit[] values()
for (DataRateUnit c : DataRateUnit.values()) System.out.println(c);
public static DataRateUnit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic long multiplier()
public long toBitsPerSecond(long v)
v - data rate valuev in bits per secondspublic double toBitsPerSecond(double v)
v - data rate valuev in bits per seconds