Package org.onosproject.net.pi.runtime
Class PiMeterBand
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiMeterBand
-
@Beta public final class PiMeterBand extends java.lang.ObjectRepresents a band used within a meter.
-
-
Constructor Summary
Constructors Constructor Description PiMeterBand(long rate, long burst)Creates a band with rate and burst.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longburst()Returns the burst of this band.booleanequals(java.lang.Object obj)inthashCode()longrate()Returns the rate of this band.java.lang.StringtoString()
-
-
-
Method Detail
-
rate
public long rate()
Returns the rate of this band.- Returns:
- rate of this band
-
burst
public long burst()
Returns the burst of this band.- Returns:
- burst of this band
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-