Class IdentityMapper

  • All Implemented Interfaces:
    PortMapper<org.onosproject.net.Port>

    @Beta
    public class IdentityMapper
    extends java.lang.Object
    implements PortMapper<org.onosproject.net.Port>
    PortMapper which 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)
      Returns port mapped to <P>.
      boolean is​(org.onosproject.net.Port port)
      Returns true if this port is capable of being projected as <P>.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdentityMapper

        public IdentityMapper()
    • Method Detail

      • is

        public boolean is​(org.onosproject.net.Port port)
        Description copied from interface: PortMapper
        Returns true if this port is capable of being projected as <P>.
        Specified by:
        is in interface PortMapper<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: PortMapper
        Returns port mapped to <P>.
        Specified by:
        as in interface PortMapper<org.onosproject.net.Port>
        Parameters:
        port - Port to map
        Returns:
        port mapped to <P>