@Test public void testWriteOptionalNull() { final ByteBuf buf = Unpooled.buffer(); RFC8294ByteBufUtils.writeOptionalUint24(buf, null); assertEquals(0, buf.readableBytes()); }
public static void writeOptionalUint24(final ByteBuf buf, final @Nullable Uint24 value) { if (value != null) { writeUint24(buf, value); } }
RFC8294ByteBufUtils { public static void writeOptionalUint24(final ByteBuf buf, final @Nullable Uint24 value) { if (value != null) { writeUint24(buf, value); } } }
RFC8294ByteBufUtils { public static void writeOptionalUint24(final ByteBuf buf, final @Nullable Uint24 value) { if (value != null) { writeUint24(buf, value); } } private  RFC8294ByteBufUtils(); }
RFC8294ByteBufUtils { public static void writeOptionalUint24(final ByteBuf buf, final @Nullable Uint24 value) { if (value != null) { writeUint24(buf, value); } } private  RFC8294ByteBufUtils(); static @NonNull Uint24 readUint24(final ByteBuf buf); static void writeUint24(final ByteBuf buf, final Uint24 value); static void writeMandatoryUint24(final ByteBuf buf, final Uint24 value, final String name); static void writeOptionalUint24(final ByteBuf buf, final @Nullable Uint24 value); static void writeUint24OrZero(final ByteBuf buf, final @Nullable Uint24 value); }
RFC8294ByteBufUtils { public static void writeOptionalUint24(final ByteBuf buf, final @Nullable Uint24 value) { if (value != null) { writeUint24(buf, value); } } private  RFC8294ByteBufUtils(); static @NonNull Uint24 readUint24(final ByteBuf buf); static void writeUint24(final ByteBuf buf, final Uint24 value); static void writeMandatoryUint24(final ByteBuf buf, final Uint24 value, final String name); static void writeOptionalUint24(final ByteBuf buf, final @Nullable Uint24 value); static void writeUint24OrZero(final ByteBuf buf, final @Nullable Uint24 value);  }