public class MutableMatch extends Match implements MutableStructure
Match
.parseErrorCause, 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> |
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.
|
getMatchType, getTotalLength, toDebugString, toDebugString
getVersion, hex, hex, incomplete, parseErrorCause, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public 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 MutableStructure
ValidationException
- 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 MutableObject
public List<MatchField> getMatchFields()
Match
getMatchFields
in class Match
public 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 © 2015. All Rights Reserved.