Class NumericTwoByteOperandParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParser<NumericOperand>
-
- org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParser<N>
-
- org.opendaylight.protocol.bgp.flowspec.handlers.NumericTwoByteOperandParser
-
public final class NumericTwoByteOperandParser extends AbstractNumericOperandParser<N>
Parser class for NumericTwoByteValues.
-
-
Field Summary
Fields Modifier and Type Field Description static NumericTwoByteOperandParser
INSTANCE
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends NumericTwoByteValue>
org.opendaylight.yangtools.yang.common.Uint16getValue(T item)
<T extends NumericTwoByteValue>
voidserialize(List<T> list, io.netty.buffer.ByteBuf nlriByteBuf)
Serializes Flowspec component type that has maximum of 2B sized value field and numeric operand.<T extends N>
StringtoString(List<T> list)
-
Methods 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 Detail
-
INSTANCE
public static final NumericTwoByteOperandParser INSTANCE
-
-
Method Detail
-
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
public final <T extends N> String toString(List<T> list)
- Specified by:
toString
in classAbstractNumericOperandParser<N>
-
-