Package org.onosproject.net.meter
Class MeterOperation
- java.lang.Object
-
- org.onosproject.net.meter.MeterOperation
-
public class MeterOperation extends java.lang.Object
Representation of an operation on the meter table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MeterOperation.Type
Tyoe 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 boolean
equals(java.lang.Object o)
int
hashCode()
Meter
meter()
Returns the meter.java.lang.String
toString()
MeterOperation.Type
type()
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-