Class UnresolvedExtensionSelector
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.net.flow.criteria.UnresolvedExtensionSelector
-
- All Implemented Interfaces:
ExtensionSelector
,Extension
public class UnresolvedExtensionSelector extends AbstractExtension implements ExtensionSelector
Unresolved extension selector.
-
-
Constructor Summary
Constructors Constructor Description UnresolvedExtensionSelector(byte[] arraybyte, ExtensionSelectorType type)
Creates a new unresolved extension selector 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(Object obj)
int
hashCode()
byte[]
serialize()
Serialize the extension to a byte array.String
toString()
ExtensionSelectorType
type()
Gets the type of the extension selector.-
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
-
UnresolvedExtensionSelector
public UnresolvedExtensionSelector(byte[] arraybyte, ExtensionSelectorType type)
Creates a new unresolved extension selector with given data in byte form.- Parameters:
arraybyte
- byte data for the extension selectortype
- unresolved extension data type
-
-
Method Detail
-
serialize
public byte[] serialize()
Description copied from interface:Extension
Serialize the extension to a byte array.
-
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
-
type
public ExtensionSelectorType type()
Description copied from interface:ExtensionSelector
Gets the type of the extension selector.- Specified by:
type
in interfaceExtensionSelector
- Returns:
- type
-
-