public enum PortSpeed extends Enum<PortSpeed>
Enum Constant and Description |
---|
SPEED_100GB |
SPEED_100MB |
SPEED_10GB |
SPEED_10MB |
SPEED_1GB |
SPEED_1TB |
SPEED_40GB |
SPEED_NONE
no speed set
|
Modifier and Type | Method and Description |
---|---|
long |
getSpeedBps() |
static PortSpeed |
max(PortSpeed s1,
PortSpeed s2) |
static PortSpeed |
min(PortSpeed s1,
PortSpeed s2) |
static PortSpeed |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortSpeed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortSpeed SPEED_NONE
public static final PortSpeed SPEED_10MB
public static final PortSpeed SPEED_100MB
public static final PortSpeed SPEED_1GB
public static final PortSpeed SPEED_10GB
public static final PortSpeed SPEED_40GB
public static final PortSpeed SPEED_100GB
public static final PortSpeed SPEED_1TB
public static PortSpeed[] values()
for (PortSpeed c : PortSpeed.values()) System.out.println(c);
public static PortSpeed 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 getSpeedBps()
Copyright © 2015. All rights reserved.