Interface PortMapper<P extends org.onosproject.net.Port>
-
- Type Parameters:
P- Port type to map generic Port to
- All Known Implementing Classes:
AbstractPortMapper,IdentityMapper,OchPortMapper,OduCltPortMapper,OmsPortMapper,OtuPortMapper
@Beta public interface PortMapper<P extends org.onosproject.net.Port>Abstraction of a class capable of translating generic-Port object as another domain-specific Port of typeP.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<P>as(org.onosproject.net.Port port)Returnsportmapped to<P>.booleanis(org.onosproject.net.Port port)Returns true if this port is capable of being projected as<P>.
-
-
-
Method Detail
-
is
boolean is(org.onosproject.net.Port port)
Returns true if this port is capable of being projected as<P>.- Parameters:
port- port- Returns:
- true if this port can be projected as the given type
-
as
java.util.Optional<P> as(org.onosproject.net.Port port)
Returnsportmapped to<P>.- Parameters:
port- Port to map- Returns:
portmapped to<P>
-
-