@Test public void iterateOverAllSnaks() { Iterator<Snak> snaks = r1.getAllSnaks(); assertTrue(snaks.hasNext()); assertEquals(valueSnak, snaks.next()); assertFalse(snaks.hasNext()); }
@Override @JsonIgnore public Iterator<Snak> getAllSnaks() { return new NestedIterator<>(getSnakGroups()); }
ReferenceImpl implements Reference { @Override @JsonIgnore public Iterator<Snak> getAllSnaks() { return new NestedIterator<>(getSnakGroups()); } }
ReferenceImpl implements Reference { @Override @JsonIgnore public Iterator<Snak> getAllSnaks() { return new NestedIterator<>(getSnakGroups()); } ReferenceImpl(List<SnakGroup> groups); @JsonCreator protected  ReferenceImpl(
			@JsonProperty("snaks") Map<String, List<SnakImpl>> snaks,
			@JsonProperty("snaks-order") List<String> propertyOrder,
			@JsonProperty("hash") String hash); }
ReferenceImpl implements Reference { @Override @JsonIgnore public Iterator<Snak> getAllSnaks() { return new NestedIterator<>(getSnakGroups()); } ReferenceImpl(List<SnakGroup> groups); @JsonCreator protected  ReferenceImpl(
			@JsonProperty("snaks") Map<String, List<SnakImpl>> snaks,
			@JsonProperty("snaks-order") List<String> propertyOrder,
			@JsonProperty("hash") String hash); @JsonIgnore @Override List<SnakGroup> getSnakGroups(); @JsonProperty("snaks") Map<String, List<Snak>> getSnaks(); @Override @JsonInclude(JsonInclude.Include.NON_NULL) String getHash(); @JsonProperty("snaks-order") List<String> getPropertyOrder(); @Override @JsonIgnore Iterator<Snak> getAllSnaks(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ReferenceImpl implements Reference { @Override @JsonIgnore public Iterator<Snak> getAllSnaks() { return new NestedIterator<>(getSnakGroups()); } ReferenceImpl(List<SnakGroup> groups); @JsonCreator protected  ReferenceImpl(
			@JsonProperty("snaks") Map<String, List<SnakImpl>> snaks,
			@JsonProperty("snaks-order") List<String> propertyOrder,
			@JsonProperty("hash") String hash); @JsonIgnore @Override List<SnakGroup> getSnakGroups(); @JsonProperty("snaks") Map<String, List<Snak>> getSnaks(); @Override @JsonInclude(JsonInclude.Include.NON_NULL) String getHash(); @JsonProperty("snaks-order") List<String> getPropertyOrder(); @Override @JsonIgnore Iterator<Snak> getAllSnaks(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }