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 SummaryFields Modifier and Type Field Description static NumericTwoByteOperandParserINSTANCE- 
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParserEQUALS_VALUE, GREATER_THAN_VALUE, LESS_THAN_VALUE
 - 
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParserAND_BIT, AND_BIT_VALUE, END_OF_LIST, END_OF_LIST_VALUE, LENGTH_SHIFT, OPERAND_LENGTH
 
- 
 - 
Method SummaryAll 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.AbstractNumericOperandParsercreate, parse, serialize, toString
 - 
Methods inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParserparseLength
 
- 
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final NumericTwoByteOperandParser INSTANCE 
 
- 
 - 
Method Detail- 
serializepublic <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:
- serializein class- AbstractNumericOperandParser<NumericTwoByteValue>
- Parameters:
- list- of operands to be serialized
- nlriByteBuf- where the operands will be serialized
 
 - 
getValueprotected <T extends NumericTwoByteValue> org.opendaylight.yangtools.yang.common.Uint16 getValue(T item) 
 - 
toStringpublic final <T extends N> String toString(List<T> list) - Specified by:
- toStringin class- AbstractNumericOperandParser<N>
 
 
- 
 
-