Class PiCounterCellData


  • @Beta
    public final class PiCounterCellData
    extends Object
    Data of a counter cell of a protocol-independent pipeline.
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object