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 voiddeserialize(byte[] data)Deserialize the extension from a byte array.booleanequals(java.lang.Object obj)inthashCode()byte[]serialize()Serialize the extension to a byte array.java.lang.StringtoString()ExtensionTreatmentTypetype()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:ExtensionTreatmentGets the type of the treatment extension.- Specified by:
typein interfaceExtensionTreatment- Returns:
- type
-
deserialize
public void deserialize(byte[] data)
Description copied from interface:ExtensionDeserialize the extension from a byte array. The properties of this object will be overwritten with the data in the byte array.- Specified by:
deserializein interfaceExtension- Parameters:
data- input byte array
-
serialize
public byte[] serialize()
Description copied from interface:ExtensionSerialize the extension to a byte array.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-