Package org.onosproject.net.pi.runtime
Class PiCounterCellData
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiCounterCellData
-
@Beta public final class PiCounterCellData extends java.lang.ObjectData 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 longbytes()Returns the byte count value contained by this counter data.booleanequals(java.lang.Object o)inthashCode()longpackets()Returns the packet count value contained by this counter data.java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-