public class DefaultPortDescription extends AbstractDescription implements PortDescription
Modifier and Type | Class and Description |
---|---|
static class |
DefaultPortDescription.Builder |
Modifier | Constructor and Description |
---|---|
protected |
DefaultPortDescription() |
Modifier and Type | Method and Description |
---|---|
static DefaultPortDescription.Builder |
builder()
Creates port description builder with default parameters.
|
static DefaultPortDescription.Builder |
builder(PortDescription desc)
Creates port description builder inheriting with default parameters,
from specified port description.
|
boolean |
equals(Object object) |
int |
hashCode() |
boolean |
isEnabled()
Indicates whether or not the port is up and active.
|
boolean |
isRemoved()
Indicates whether or not the port was removed.
|
PortNumber |
portNumber()
Returns the port number.
|
long |
portSpeed()
Returns the current port speed in Mbps.
|
String |
toString() |
Port.Type |
type()
Returns the port type.
|
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
public PortNumber portNumber()
PortDescription
portNumber
in interface PortDescription
public boolean isEnabled()
PortDescription
isEnabled
in interface PortDescription
public boolean isRemoved()
PortDescription
isRemoved
in interface PortDescription
public Port.Type type()
PortDescription
type
in interface PortDescription
public long portSpeed()
PortDescription
portSpeed
in interface PortDescription
public int hashCode()
hashCode
in class AbstractDescription
public boolean equals(Object object)
equals
in class AbstractDescription
public static DefaultPortDescription.Builder builder()
public static DefaultPortDescription.Builder builder(PortDescription desc)
desc
- to inherit default from