Uses of Class
org.opendaylight.yangtools.yang.common.Uint16
Packages that use Uint16
Package
Description
Common YANG concepts and constants expressed in terms of Java.
Common utilities bridging common YANG constructs with Netty.
-
Uses of Uint16 in org.opendaylight.yangtools.yang.common
Fields in org.opendaylight.yangtools.yang.common declared as Uint16Modifier and TypeFieldDescriptionstatic final Uint16
Uint16.MAX_VALUE
Value of65535
.static final Uint16
Uint16.ONE
Value of1
.static final Uint16
Uint16.TEN
Value of10
.static final Uint16
Uint16.TWO
Value of2
.static final Uint16
Uint16.ZERO
Value of0
.Methods in org.opendaylight.yangtools.yang.common that return Uint16Modifier and TypeMethodDescriptionstatic Uint16
UintConversions.fromJava
(int value) Convert anint
in range 0-65535 to a Uint16.static Uint16
Uint16.fromShortBits
(short bits) Returns anUint16
corresponding to a given bit representation.final Uint16
Uint16.intern()
Return an interned (shared) instance equivalent to this object.static Uint16
Uint16.saturatedOf
(byte byteVal) Returns anUint16
corresponding to a givenbyteVal
if it is representable.static Uint16
Uint16.saturatedOf
(int intVal) Returns anUint16
corresponding to a givenintVal
if it is representable.static Uint16
Uint16.saturatedOf
(long longVal) Returns anUint16
corresponding to a givenlongVal
if it is representable.static Uint16
Uint16.saturatedOf
(short shortVal) Returns anUint16
corresponding to a givenshortVal
if it is representable.final Uint16
Uint32.toSaturatedUint16()
final Uint16
Uint32.toUint16()
Convert this value to aUint16
.final Uint16
Uint64.toUint16()
Convert this value to aUint16
.final Uint16
Uint8.toUint16()
Convert this value to aUint16
.static Uint16
Uint16.valueOf
(byte byteVal) Returns anUint16
corresponding to a givenbyteVal
.static Uint16
Uint16.valueOf
(int intVal) Returns anUint16
corresponding to a givenintVal
.static Uint16
Uint16.valueOf
(long longVal) Returns anUint16
corresponding to a givenlongVal
.static Uint16
Uint16.valueOf
(short shortVal) Returns anUint16
corresponding to a givenshortVal
.static Uint16
Returns anUint16
holding the value of the specifiedString
, parsed as an unsignedint
value.static Uint16
Returns anUint16
holding the value of the specifiedString
, parsed as an unsignedint
value.static Uint16
Returns anUint8
corresponding to a givenuint
.static Uint16
Returns anUint8
corresponding to a givenuint
.static Uint16
Returns anUint16
corresponding to a givenuint
.Methods in org.opendaylight.yangtools.yang.common that return types with arguments of type Uint16Modifier and TypeMethodDescriptionUint16.Support.fromString
(String str) final CanonicalValueSupport<Uint16>
Uint16.support()
Methods in org.opendaylight.yangtools.yang.common with parameters of type Uint16Modifier and TypeMethodDescriptionfinal int
final boolean
A slightly faster version ofequals(Object)
.static Uint32
Returns anUint32
corresponding to a givenuint
.static Uint64
Returns anUint64
corresponding to a givenuint
.static Uint8
Returns anUint8
corresponding to a givenuint
.Constructors in org.opendaylight.yangtools.yang.common with parameters of type Uint16 -
Uses of Uint16 in org.opendaylight.yangtools.yang.common.netty
Methods in org.opendaylight.yangtools.yang.common.netty that return Uint16Modifier and TypeMethodDescriptionstatic @NonNull Uint16
ByteBufUtils.readUint16
(io.netty.buffer.ByteBuf buf) Read aUint16
from specified buffer.Methods in org.opendaylight.yangtools.yang.common.netty with parameters of type Uint16Modifier and TypeMethodDescriptionstatic void
Write aUint16
to specified buffer.static void
ByteBufUtils.writeMandatory
(io.netty.buffer.ByteBuf buf, Uint16 value, String name) Write aUint16
property to specified buffer.static void
ByteBufUtils.writeOptional
(io.netty.buffer.ByteBuf buf, @Nullable Uint16 value) Write aUint16
value to specified buffer if it is not null.static void
ByteBufUtils.writeOrZero
(io.netty.buffer.ByteBuf buf, @Nullable Uint16 value) Write aUint16
value to specified buffer if it is not null, otherwise write two zero bytes.static void
ByteBufUtils.writeUint16
(io.netty.buffer.ByteBuf buf, Uint16 value) Write aUint16
to specified buffer. -
Uses of Uint16 in org.opendaylight.yangtools.yang.data.impl.codec
Methods in org.opendaylight.yangtools.yang.data.impl.codec that return types with arguments of type Uint16Modifier and TypeMethodDescriptionstatic @NonNull AbstractIntegerStringCodec<Uint16,
Uint16TypeDefinition> AbstractIntegerStringCodec.from
(Uint16TypeDefinition type) -
Uses of Uint16 in org.opendaylight.yangtools.yang.model.ri.type
Methods in org.opendaylight.yangtools.yang.model.ri.type that return types with arguments of type Uint16Modifier and TypeMethodDescriptionstatic @NonNull RangeRestrictedTypeBuilder<Uint16TypeDefinition,
Uint16> RestrictedTypes.newUint16Builder
(Uint16TypeDefinition baseType, QName qname)