Class NumericTwoByteOperandParser
java.lang.Object
org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParser<NumericOperand>
org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParser<NumericTwoByteValue>
org.opendaylight.protocol.bgp.flowspec.handlers.NumericTwoByteOperandParser
public final class NumericTwoByteOperandParser
extends AbstractNumericOperandParser<NumericTwoByteValue>
Parser class for NumericTwoByteValues.
-
Field Summary
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParser
EQUALS_VALUE, GREATER_THAN_VALUE, LESS_THAN_VALUE
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParser
AND_BIT, AND_BIT_VALUE, END_OF_LIST, END_OF_LIST_VALUE, LENGTH_SHIFT, OPERAND_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends NumericTwoByteValue>
org.opendaylight.yangtools.yang.common.Uint16getValue
(T item) <T extends NumericTwoByteValue>
voidSerializes Flowspec component type that has maximum of 2B sized value field and numeric operand.final <T extends N>
StringMethods inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParser
create, parse, serialize, toString
Methods inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParser
parseLength
-
Field Details
-
INSTANCE
-
-
Method Details
-
serialize
public <T extends NumericTwoByteValue> void serialize(List<T> list, io.netty.buffer.ByteBuf nlriByteBuf) Serializes Flowspec component type that has maximum of 2B sized value field and numeric operand.- Specified by:
serialize
in classAbstractNumericOperandParser<NumericTwoByteValue>
- Parameters:
list
- of operands to be serializednlriByteBuf
- where the operands will be serialized
-
getValue
protected <T extends NumericTwoByteValue> org.opendaylight.yangtools.yang.common.Uint16 getValue(T item) -
toString
- Specified by:
toString
in classAbstractNumericOperandParser<N>
-