@Test public void read_null() throws Exception { IntOptionPropertyAdapter adapter = builder.build(); IntOption option = new IntOption(1234); adapter.read(new MockValue(null), option); assertThat(option, is(new IntOption())); }
@Override public final void read(ValueReader reader, T property) throws IOException { if (reader.isNull()) { absent(property); } else { doRead(reader, property); } }
ValueOptionPropertyAdapter implements PropertyAdapter<T> { @Override public final void read(ValueReader reader, T property) throws IOException { if (reader.isNull()) { absent(property); } else { doRead(reader, property); } } }
ValueOptionPropertyAdapter implements PropertyAdapter<T> { @Override public final void read(ValueReader reader, T property) throws IOException { if (reader.isNull()) { absent(property); } else { doRead(reader, property); } } protected  ValueOptionPropertyAdapter(BuilderBase<?, ?> builder); }
ValueOptionPropertyAdapter implements PropertyAdapter<T> { @Override public final void read(ValueReader reader, T property) throws IOException { if (reader.isNull()) { absent(property); } else { doRead(reader, property); } } protected  ValueOptionPropertyAdapter(BuilderBase<?, ?> builder); @SuppressWarnings("deprecation") @Override void absent(T property); @Override final void read(ValueReader reader, T property); @Override void write(T property, ValueWriter writer); }
ValueOptionPropertyAdapter implements PropertyAdapter<T> { @Override public final void read(ValueReader reader, T property) throws IOException { if (reader.isNull()) { absent(property); } else { doRead(reader, property); } } protected  ValueOptionPropertyAdapter(BuilderBase<?, ?> builder); @SuppressWarnings("deprecation") @Override void absent(T property); @Override final void read(ValueReader reader, T property); @Override void write(T property, ValueWriter writer); static final NullStyle DEFAULT_NULL_STYLE; }