private static enum BitRate.Units extends Enum<BitRate.Units>
Enum Constant and Description |
---|
BPS
Bits per second - bps, standard unit.
|
GBPS
Gbps, 10^9 = 1,000,000,000 bps.
|
KBPS
Kbps, 10^3 = 1,000 bps.
|
MBPS
Mbps, 10^6 = 1,000,000 bps.
|
TBPS
Tbps, 10^12 = 1,000,000,000,000 bps.
|
Modifier and Type | Field and Description |
---|---|
private static Map<BitRate.Units,String> |
DISPLAY |
private static Map<String,BitRate.Units> |
UNITS |
(package private) long |
value
Units value.
|
Modifier and Type | Method and Description |
---|---|
String |
display() |
static BitRate.Units |
forName(String name) |
static BitRate.Units |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BitRate.Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BitRate.Units BPS
public static final BitRate.Units KBPS
public static final BitRate.Units MBPS
public static final BitRate.Units GBPS
public static final BitRate.Units TBPS
long value
private static Map<BitRate.Units,String> DISPLAY
private static Map<String,BitRate.Units> UNITS
public static BitRate.Units[] values()
for (BitRate.Units c : BitRate.Units.values()) System.out.println(c);
public static BitRate.Units 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 String display()
public static BitRate.Units forName(String name)
Copyright © 2019. All rights reserved.