Class IndexTableId

  • All Implemented Interfaces:
    TableId

    public final class IndexTableId
    extends org.onlab.util.Identifier<java.lang.Integer>
    implements TableId
    Table identifier representing the position of the table in the pipeline.
    • Nested Class Summary

    • Field Summary

      • Fields inherited from class org.onlab.util.Identifier

        identifier
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(TableId other)
      Compares table ID.
      static IndexTableId of​(int index)
      Returns a table identifier for the given index.
      TableId.Type type()
      Gets type of this table ID.
      • Methods inherited from class org.onlab.util.Identifier

        equals, hashCode, id, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • type

        public TableId.Type type()
        Description copied from interface: TableId
        Gets type of this table ID.
        Specified by:
        type in interface TableId
        Returns:
        type
      • compareTo

        public int compareTo​(TableId other)
        Description copied from interface: TableId
        Compares table ID.
        Specified by:
        compareTo in interface TableId
        Parameters:
        other - table ID to be compared
        Returns:
        zero if the table IDs are the same. Otherwise, return a non-zero integer
      • of

        public static IndexTableId of​(int index)
        Returns a table identifier for the given index.
        Parameters:
        index - table index
        Returns:
        table identifier