Class IdentityMapper
- java.lang.Object
-
- org.onosproject.net.optical.device.port.IdentityMapper
-
- All Implemented Interfaces:
PortMapper<org.onosproject.net.Port>
@Beta public class IdentityMapper extends java.lang.Object implements PortMapper<org.onosproject.net.Port>
PortMapperwhich simply return given input.
-
-
Constructor Summary
Constructors Constructor Description IdentityMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<org.onosproject.net.Port>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
public boolean is(org.onosproject.net.Port port)
Description copied from interface:PortMapperReturns true if this port is capable of being projected as<P>.- Specified by:
isin interfacePortMapper<org.onosproject.net.Port>- Parameters:
port- port- Returns:
- true if this port can be projected as the given type
-
as
public java.util.Optional<org.onosproject.net.Port> as(org.onosproject.net.Port port)
Description copied from interface:PortMapperReturnsportmapped to<P>.- Specified by:
asin interfacePortMapper<org.onosproject.net.Port>- Parameters:
port- Port to map- Returns:
portmapped to<P>
-
-