public class MutableMatch extends Match implements MutableStructure
Match.version| Modifier and Type | Method and Description |
|---|---|
MutableMatch |
addField(MatchField field)
Adds the specified match field to this match.
|
boolean |
equals(Object o) |
List<MatchField> |
fieldList()
Returns the fields in spec-defined order.
|
List<MatchField> |
getMatchFields()
Returns the list of match fields, in the order they were defined
in the match structure.
|
int |
hashCode() |
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getMatchLength, getMatchType, getTotalLength, toDebugString, toDebugStringgetVersion, hex, hex, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic OpenflowStructure toImmutable()
It is expected that the reference to this mutable structure will be
dropped. Note that all method calls invoked on a
MutableStructure after toImmutable() has been invoked
will result in an InvalidMutableException being thrown.
In addition, the match fields are validated to ensure that all their pre-requisites are met.
toImmutable in interface MutableStructureValidationException - if match field pre-requisites have not
been metInvalidMutableException - if this structure is no longer writablepublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic List<MatchField> fieldList()
Matchpublic List<MatchField> getMatchFields()
MatchgetMatchFields in class Matchpublic MutableMatch addField(MatchField field)
field - the match field to addInvalidMutableException - if this instance is no longer writableNullPointerException - if field is nullIllegalArgumentException - if the match field type is duplicatedCopyright © 2014. All Rights Reserved.