@Test public void testWriteOrZeroNull() { final ByteBuf buf = Unpooled.buffer(); RFC8294ByteBufUtils.writeUint24OrZero(buf, null); assertMedium(buf, 0); }
public static void writeUint24OrZero(final ByteBuf buf, final @Nullable Uint24 value) { buf.writeMedium(value != null ? value.getValue().intValue() : 0); }
RFC8294ByteBufUtils { public static void writeUint24OrZero(final ByteBuf buf, final @Nullable Uint24 value) { buf.writeMedium(value != null ? value.getValue().intValue() : 0); } }
RFC8294ByteBufUtils { public static void writeUint24OrZero(final ByteBuf buf, final @Nullable Uint24 value) { buf.writeMedium(value != null ? value.getValue().intValue() : 0); } private  RFC8294ByteBufUtils(); }
RFC8294ByteBufUtils { public static void writeUint24OrZero(final ByteBuf buf, final @Nullable Uint24 value) { buf.writeMedium(value != null ? value.getValue().intValue() : 0); } 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 writeUint24OrZero(final ByteBuf buf, final @Nullable Uint24 value) { buf.writeMedium(value != null ? value.getValue().intValue() : 0); } 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);  }