|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BandwidthUnit>
be.ac.ulg.montefiore.run.totem.domain.model.BandwidthUnit
public enum BandwidthUnit
An enum class that expresses bandwidth units.
Creation date: 11-Jul-2006
Enum Constant Summary | |
---|---|
BPS
|
|
DEFAULT_UNIT
|
|
GBPS
|
|
KBPS
|
|
MBPS
|
|
TBPS
|
Method Summary | |
---|---|
float |
convert(BandwidthUnit convertFrom,
float number)
Converts a float in the unit given as parameter to the unit of this enum. |
static BandwidthUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BandwidthUnit[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BandwidthUnit DEFAULT_UNIT
public static final BandwidthUnit BPS
public static final BandwidthUnit KBPS
public static final BandwidthUnit MBPS
public static final BandwidthUnit GBPS
public static final BandwidthUnit TBPS
Method Detail |
---|
public static final BandwidthUnit[] values()
for(BandwidthUnit c : BandwidthUnit.values()) System.out.println(c);
public static BandwidthUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic float convert(BandwidthUnit convertFrom, float number)
convertFrom
- The unit in which number
must be interpretednumber
- The float to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |