@Test public void stream() throws Exception { final Stream<JsonValue> actual = underTest.stream(); assertThat(actual) .hasSize(4) .doesNotContainNull(); }
@Nonnull @CheckReturnValue public Stream<JsonValue> stream() { return value.stream().map(JsonValue::wrap); }
JsonArray extends JsonValue { @Nonnull @CheckReturnValue public Stream<JsonValue> stream() { return value.stream().map(JsonValue::wrap); } }
JsonArray extends JsonValue { @Nonnull @CheckReturnValue public Stream<JsonValue> stream() { return value.stream().map(JsonValue::wrap); } JsonArray(@Nonnull List<Object> value); }
JsonArray extends JsonValue { @Nonnull @CheckReturnValue public Stream<JsonValue> stream() { return value.stream().map(JsonValue::wrap); } JsonArray(@Nonnull List<Object> value); @Nonnull @Override TypeName getType(); @Nonnull @Override List<Object> getValue(); @Nonnull @CheckReturnValue Stream<JsonValue> stream(); }
JsonArray extends JsonValue { @Nonnull @CheckReturnValue public Stream<JsonValue> stream() { return value.stream().map(JsonValue::wrap); } JsonArray(@Nonnull List<Object> value); @Nonnull @Override TypeName getType(); @Nonnull @Override List<Object> getValue(); @Nonnull @CheckReturnValue Stream<JsonValue> stream();  }