@Test public void stream() throws Exception { final Stream<Map.Entry<String, JsonValue>> actual = underTest.stream(); assertThat(actual) .hasSize(2) .doesNotContainNull(); }
@Nonnull @CheckReturnValue public Stream<Map.Entry<String, JsonValue>> stream() { return value.entrySet() .stream() .map(entry -> { final String name = entry.getKey(); final Object value = entry.getValue(); return new HashMap.SimpleImmutableEntry<>(name, wrap(value)); }); }
JsonObject extends JsonValue { @Nonnull @CheckReturnValue public Stream<Map.Entry<String, JsonValue>> stream() { return value.entrySet() .stream() .map(entry -> { final String name = entry.getKey(); final Object value = entry.getValue(); return new HashMap.SimpleImmutableEntry<>(name, wrap(value)); }); } }
JsonObject extends JsonValue { @Nonnull @CheckReturnValue public Stream<Map.Entry<String, JsonValue>> stream() { return value.entrySet() .stream() .map(entry -> { final String name = entry.getKey(); final Object value = entry.getValue(); return new HashMap.SimpleImmutableEntry<>(name, wrap(value)); }); } JsonObject(@Nonnull Map<String, Object> value); }
JsonObject extends JsonValue { @Nonnull @CheckReturnValue public Stream<Map.Entry<String, JsonValue>> stream() { return value.entrySet() .stream() .map(entry -> { final String name = entry.getKey(); final Object value = entry.getValue(); return new HashMap.SimpleImmutableEntry<>(name, wrap(value)); }); } JsonObject(@Nonnull Map<String, Object> value); @Nonnull @Override TypeName getType(); @Nonnull @Override Map<String, Object> getValue(); @Nonnull @CheckReturnValue Stream<Map.Entry<String, JsonValue>> stream(); }
JsonObject extends JsonValue { @Nonnull @CheckReturnValue public Stream<Map.Entry<String, JsonValue>> stream() { return value.entrySet() .stream() .map(entry -> { final String name = entry.getKey(); final Object value = entry.getValue(); return new HashMap.SimpleImmutableEntry<>(name, wrap(value)); }); } JsonObject(@Nonnull Map<String, Object> value); @Nonnull @Override TypeName getType(); @Nonnull @Override Map<String, Object> getValue(); @Nonnull @CheckReturnValue Stream<Map.Entry<String, JsonValue>> stream();  }