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.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()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-