Package org.onosproject.net.meter
Class MeterOperation
- java.lang.Object
-
- org.onosproject.net.meter.MeterOperation
-
public class MeterOperation extends java.lang.ObjectRepresentation of an operation on the meter table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeterOperation.TypeTyoe of meter operation.
-
Constructor Summary
Constructors Constructor Description MeterOperation(Meter meter, MeterOperation.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()Metermeter()Returns the meter.java.lang.StringtoString()MeterOperation.Typetype()Returns the type of operation.
-
-
-
Constructor Detail
-
MeterOperation
public MeterOperation(Meter meter, MeterOperation.Type type)
-
-
Method Detail
-
type
public MeterOperation.Type type()
Returns the type of operation.- Returns:
- type
-
meter
public Meter meter()
Returns the meter.- Returns:
- a meter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-