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.Object
Represents 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 long
burst()
Returns the burst of this band.boolean
equals(java.lang.Object obj)
int
hashCode()
long
rate()
Returns the rate of this band.java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-