Class UnresolvedExtensionTreatment
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.net.flow.instructions.UnresolvedExtensionTreatment
-
- All Implemented Interfaces:
Extension
,ExtensionTreatment
public class UnresolvedExtensionTreatment extends AbstractExtension implements ExtensionTreatment
Unresolved extension treatment.
-
-
Constructor Summary
Constructors Constructor Description UnresolvedExtensionTreatment(byte[] arraybyte, ExtensionTreatmentType type)
Creates a new unresolved extension treatment with given data in byte form.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(byte[] data)
Deserialize the extension from a byte array.boolean
equals(java.lang.Object obj)
int
hashCode()
byte[]
serialize()
Serialize the extension to a byte array.java.lang.String
toString()
ExtensionTreatmentType
type()
Gets the type of the treatment extension.-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
getProperties, getPropertyValue, setPropertyValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.onosproject.net.flow.Extension
getProperties, getPropertyValue, setPropertyValue
-
-
-
-
Constructor Detail
-
UnresolvedExtensionTreatment
public UnresolvedExtensionTreatment(byte[] arraybyte, ExtensionTreatmentType type)
Creates a new unresolved extension treatment with given data in byte form.- Parameters:
arraybyte
- byte data for treatmenttype
- unresolved extension data type
-
-
Method Detail
-
type
public ExtensionTreatmentType type()
Description copied from interface:ExtensionTreatment
Gets the type of the treatment extension.- Specified by:
type
in interfaceExtensionTreatment
- Returns:
- type
-
deserialize
public void deserialize(byte[] data)
Description copied from interface:Extension
Deserialize the extension from a byte array. The properties of this object will be overwritten with the data in the byte array.- Specified by:
deserialize
in interfaceExtension
- Parameters:
data
- input byte array
-
serialize
public byte[] serialize()
Description copied from interface:Extension
Serialize the extension to a byte array.
-
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
-
-