Class PiCounterCellData


  • @Beta
    public final class PiCounterCellData
    extends java.lang.Object
    Data of a counter cell of a protocol-independent pipeline.
    • Constructor Summary

      Constructors 
      Constructor Description
      PiCounterCellData​(long packets, long bytes)
      Creates a new counter cell data for the given number of packets and bytes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long bytes()
      Returns the byte count value contained by this counter data.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      long packets()
      Returns the packet count value contained by this counter data.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • PiCounterCellData

        public PiCounterCellData​(long packets,
                                 long bytes)
        Creates a new counter cell data for the given number of packets and bytes.
        Parameters:
        packets - number of packets
        bytes - number of bytes
    • Method Detail

      • packets

        public long packets()
        Returns the packet count value contained by this counter data.
        Returns:
        number of packets
      • bytes

        public long bytes()
        Returns the byte count value contained by this counter data.
        Returns:
        number of bytes
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object