@Beta public class OtuPortMapper extends AbstractPortMapper<OtuPort>
PortMapper to handler OtuPort translation.| Constructor and Description |
|---|
OtuPortMapper() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<OtuPort> |
as(org.onosproject.net.Port port)
Returns
port mapped to {@code |
boolean |
is(org.onosproject.net.Port port)
Returns true if this port is capable of being projected as {@code
|
protected java.util.Optional<OtuPort> |
mapPort(org.onosproject.net.Port port)
Returns
port mapped to {@code |
public boolean is(org.onosproject.net.Port port)
AbstractPortMapper<P>.
Note: Subclasses should override and implement short-cut conditions
and call super.is(port).
is in interface PortMapper<OtuPort>is in class AbstractPortMapper<OtuPort>port - portpublic java.util.Optional<OtuPort> as(org.onosproject.net.Port port)
AbstractPortMapperport mapped to <P>.
Note: Subclasses should override and check if port is
already of type P and directly return Optional.of((P) port),
if not call super.as(port).
as in interface PortMapper<OtuPort>as in class AbstractPortMapper<OtuPort>port - Port to mapport mapped to <P>protected java.util.Optional<OtuPort> mapPort(org.onosproject.net.Port port)
AbstractPortMapperport mapped to <P>.mapPort in class AbstractPortMapper<OtuPort>port - Port to mapport mapped to <P>