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(java.lang.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. |
java.lang.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)
public int hashCode()
hashCode
in class java.lang.Object
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 topublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
MoreObjects.ToStringHelper
with Port attributes excluding annotations.MoreObjects.ToStringHelper
public java.lang.String toString()
toString
in class java.lang.Object
public Annotations annotations()
Annotated
annotations
in interface Annotated
public Element element()
Port
public PortNumber number()
Port
public boolean isEnabled()
Port