Package org.onosproject.vpls.api
Class VplsOperation
- java.lang.Object
-
- org.onosproject.vpls.api.VplsOperation
-
public class VplsOperation extends java.lang.ObjectOperation for VPLS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVplsOperation.OperationThe operation type.
-
Constructor Summary
Constructors Modifier Constructor Description protectedVplsOperation(VplsData vplsData, VplsOperation.Operation op)Defines a VPLS operation by binding a given VPLS and operation type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()static VplsOperationof(VplsData vplsData, VplsOperation.Operation op)Defines a VPLS operation by binding a given VPLS and operation type.VplsOperation.Operationop()Retrieves the operation type from the operation.java.lang.StringtoString()VplsDatavpls()Retrieves the VPLS from the operation.
-
-
-
Constructor Detail
-
VplsOperation
protected VplsOperation(VplsData vplsData, VplsOperation.Operation op)
Defines a VPLS operation by binding a given VPLS and operation type.- Parameters:
vplsData- the VPLSop- the operation
-
-
Method Detail
-
of
public static VplsOperation of(VplsData vplsData, VplsOperation.Operation op)
Defines a VPLS operation by binding a given VPLS and operation type.- Parameters:
vplsData- the VPLSop- the operation- Returns:
- the VPLS operation
-
vpls
public VplsData vpls()
Retrieves the VPLS from the operation.- Returns:
- the VPLS
-
op
public VplsOperation.Operation op()
Retrieves the operation type from the operation.- Returns:
- the operation type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-