use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.AsNumberSubobject in project bgpcep by opendaylight.
the class AsNumberCaseParser method serializeSubobject.
public static ByteBuf serializeSubobject(final AsNumberCase asCase) {
final AsNumberSubobject asNumber = asCase.getAsNumber();
final ByteBuf body = Unpooled.buffer(CONTENT_LENGTH);
Preconditions.checkArgument(asNumber.getAsNumber() != null, "AsNumber is mandatory.");
writeShort(asNumber.getAsNumber().getValue().shortValue(), body);
return body;
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.AsNumberSubobject in project bgpcep by opendaylight.
the class AsNumberCaseParser method serializeSubobject.
static ByteBuf serializeSubobject(final AsNumberCase asCase) {
final AsNumberSubobject asNumber = asCase.getAsNumber();
final ByteBuf body = Unpooled.buffer(CONTENT_LENGTH);
Preconditions.checkArgument(asNumber.getAsNumber() != null, "AsNumber is mandatory.");
writeShort(asNumber.getAsNumber().getValue().shortValue(), body);
return body;
}
Aggregations