| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingPort(Port delegate) |
| Modifier and Type | Method and Description |
|---|---|
Annotations |
annotations()
Returns the key/value annotations.
|
Element |
element()
Returns the parent network element to which this port belongs.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEnabled()
Indicates whether or not the port is currently up and active.
|
PortNumber |
number()
Returns the port number.
|
long |
portSpeed()
Returns the current port speed in Mbps.
|
protected org.apache.commons.lang3.builder.EqualsBuilder |
toEqualsBuilder(Port that)
Returns
EqualsBuilder comparing all Port attributes
including annotations. |
String |
toString() |
protected com.google.common.base.MoreObjects.ToStringHelper |
toStringHelper()
Returns
MoreObjects.ToStringHelper with Port attributes excluding annotations. |
Port.Type |
type()
Returns the port type.
|
protected ForwardingPort(Port delegate)
protected org.apache.commons.lang3.builder.EqualsBuilder toEqualsBuilder(Port that)
EqualsBuilder comparing all Port attributes
including annotations.
To add extra fields to equality,
call super.toEqualsBuilder(..) and append fields.
To remove field from comparison, override this method
or manually implement equals().
that - object to compare toprotected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
MoreObjects.ToStringHelper with Port attributes excluding annotations.MoreObjects.ToStringHelperpublic Annotations annotations()
Annotatedannotations in interface Annotatedpublic Element element()
Portpublic PortNumber number()
Portpublic boolean isEnabled()
Port