Interface PortMapper<P extends org.onosproject.net.Port>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<P> 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>.
    • 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)
        Returns port mapped to <P>.
        Parameters:
        port - Port to map
        Returns:
        port mapped to <P>