public static interface Match.Builder
UnsupportedOperationException
if it is asked to create some matching that is not supported in
the version it represents.
While used, MatchBuilder may not be consistent in terms of field prerequisites. However, user must
solve these before using the generated Match object as these prerequisites should be enforced in the
getters.Modifier and Type | Method and Description |
---|---|
Match |
build()
Returns the match created by this builder.
|
<F extends OFValueType<F>> |
get(MatchField<F> field) |
<F extends OFValueType<F>> |
getMasked(MatchField<F> field) |
boolean |
isExact(MatchField<?> field) |
boolean |
isFullyWildcarded(MatchField<?> field) |
boolean |
isPartiallyMasked(MatchField<?> field) |
<F extends OFValueType<F>> |
setExact(MatchField<F> field,
F value)
Sets a specific exact value for a field.
|
<F extends OFValueType<F>> |
setMasked(MatchField<F> field,
F value,
F mask)
Sets a masked value for a field.
|
<F extends OFValueType<F>> |
setMasked(MatchField<F> field,
Masked<F> valueWithMask)
Sets a masked value for a field.
|
boolean |
supports(MatchField<?> field) |
boolean |
supportsMasked(MatchField<?> field) |
<F extends OFValueType<F>> |
wildcard(MatchField<F> field)
Unsets any value given for the field and wildcards it so that it matches any value.
|
<F extends OFValueType<F>> F get(MatchField<F> field) throws UnsupportedOperationException
UnsupportedOperationException
<F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field) throws UnsupportedOperationException
UnsupportedOperationException
boolean supports(MatchField<?> field)
boolean supportsMasked(MatchField<?> field) throws UnsupportedOperationException
UnsupportedOperationException
boolean isExact(MatchField<?> field) throws UnsupportedOperationException
UnsupportedOperationException
boolean isFullyWildcarded(MatchField<?> field) throws UnsupportedOperationException
UnsupportedOperationException
boolean isPartiallyMasked(MatchField<?> field) throws UnsupportedOperationException
UnsupportedOperationException
<F extends OFValueType<F>> Match.Builder setExact(MatchField<F> field, F value) throws UnsupportedOperationException
field
- Match field to set.value
- Value of match field.UnsupportedOperationException
- If field is not supported.<F extends OFValueType<F>> Match.Builder setMasked(MatchField<F> field, F value, F mask) throws UnsupportedOperationException
field
- Match field to set.value
- Value of field.mask
- Mask value.UnsupportedOperationException
- If field is not supported, if field is supported but does not support masking, or if mask structure is not supported.<F extends OFValueType<F>> Match.Builder setMasked(MatchField<F> field, Masked<F> valueWithMask) throws UnsupportedOperationException
field
- Match field to set.valueWithMask
- Compound Masked object contains the value and the mask.UnsupportedOperationException
- If field is not supported, if field is supported but does not support masking, or if mask structure is not supported.<F extends OFValueType<F>> Match.Builder wildcard(MatchField<F> field) throws UnsupportedOperationException
field
- Match field to unset.UnsupportedOperationException
- If field is not supported.Match build()
Copyright © 2015. All rights reserved.