Package org.onosproject.net.utils
Class ForwardingPort
- java.lang.Object
-
- org.onosproject.net.utils.ForwardingPort
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedForwardingPort(Port delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotationsannotations()Returns the key/value annotations.Elementelement()Returns the parent network element to which this port belongs.booleanequals(Object obj)inthashCode()booleanisEnabled()Indicates whether or not the port is currently up and active.PortNumbernumber()Returns the port number.longportSpeed()Returns the current port speed in Mbps.protected org.apache.commons.lang3.builder.EqualsBuildertoEqualsBuilder(Port that)ReturnsEqualsBuildercomparing all Port attributes including annotations.StringtoString()protected com.google.common.base.MoreObjects.ToStringHelpertoStringHelper()ReturnsMoreObjects.ToStringHelperwith Port attributes excluding annotations.Port.Typetype()Returns the port type.
-
-
-
Constructor Detail
-
ForwardingPort
protected ForwardingPort(Port delegate)
-
-
Method Detail
-
toEqualsBuilder
protected org.apache.commons.lang3.builder.EqualsBuilder toEqualsBuilder(Port that)
ReturnsEqualsBuildercomparing 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().- Parameters:
that- object to compare to- Returns:
- builder object
-
toStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
ReturnsMoreObjects.ToStringHelperwith Port attributes excluding annotations.- Returns:
MoreObjects.ToStringHelper
-
annotations
public Annotations annotations()
Description copied from interface:AnnotatedReturns the key/value annotations.- Specified by:
annotationsin interfaceAnnotated- Returns:
- key/value annotations
-
element
public Element element()
Description copied from interface:PortReturns the parent network element to which this port belongs.
-
number
public PortNumber number()
Description copied from interface:PortReturns the port number.
-
isEnabled
public boolean isEnabled()
Description copied from interface:PortIndicates whether or not the port is currently up and active.
-
-