@Test public void testDeleteStatements() { Statement toRemove = statementGroups.get(0).getStatements().get(0); ItemDocument withoutStatement = ir1.withoutStatementIds(Collections.singleton(toRemove.getStatementId())); assertNotEquals(withoutStatement, ir1); }
@Override public ItemDocument withoutStatementIds(Set<String> statementIds) { Map<String, List<Statement>> newGroups = removeStatements(statementIds, claims); return new ItemDocumentImpl(getItemId(), labels, descriptions, aliases, newGroups, sitelinks, revisionId); }
ItemDocumentImpl extends TermedStatementDocumentImpl implements ItemDocument { @Override public ItemDocument withoutStatementIds(Set<String> statementIds) { Map<String, List<Statement>> newGroups = removeStatements(statementIds, claims); return new ItemDocumentImpl(getItemId(), labels, descriptions, aliases, newGroups, sitelinks, revisionId); } }
ItemDocumentImpl extends TermedStatementDocumentImpl implements ItemDocument { @Override public ItemDocument withoutStatementIds(Set<String> statementIds) { Map<String, List<Statement>> newGroups = removeStatements(statementIds, claims); return new ItemDocumentImpl(getItemId(), labels, descriptions, aliases, newGroups, sitelinks, revisionId); } ItemDocumentImpl(
			ItemIdValue id,
			List<MonolingualTextValue> labels,
			List<MonolingualTextValue> descriptions,
			List<MonolingualTextValue> aliases,
			List<StatementGroup> statements,
			List<SiteLink> siteLinks,
			long revisionId); @JsonCreator  ItemDocumentImpl(
			@JsonProperty("id") String jsonId,
			@JsonProperty("labels") @JsonDeserialize(contentAs=TermImpl.class) Map<String, MonolingualTextValue> labels,
			@JsonProperty("descriptions") @JsonDeserialize(contentAs=TermImpl.class) Map<String, MonolingualTextValue> descriptions,
			@JsonProperty("aliases") @JsonDeserialize(using = AliasesDeserializer.class) Map<String, List<MonolingualTextValue>> aliases,
			@JsonProperty("claims") Map<String, List<StatementImpl.PreStatement>> claims,
			@JsonProperty("sitelinks") Map<String, SiteLink> sitelinks,
			@JsonProperty("lastrevid") long revisionId,
			@JacksonInject("siteIri") String siteIri); protected  ItemDocumentImpl(
			ItemIdValue subject,
			Map<String, MonolingualTextValue> labels,
			Map<String, MonolingualTextValue> descriptions,
			Map<String, List<MonolingualTextValue>> aliases,
			Map<String, List<Statement>> claims, 
			Map<String, SiteLink> siteLinks,
			long revisionId); }
ItemDocumentImpl extends TermedStatementDocumentImpl implements ItemDocument { @Override public ItemDocument withoutStatementIds(Set<String> statementIds) { Map<String, List<Statement>> newGroups = removeStatements(statementIds, claims); return new ItemDocumentImpl(getItemId(), labels, descriptions, aliases, newGroups, sitelinks, revisionId); } ItemDocumentImpl(
			ItemIdValue id,
			List<MonolingualTextValue> labels,
			List<MonolingualTextValue> descriptions,
			List<MonolingualTextValue> aliases,
			List<StatementGroup> statements,
			List<SiteLink> siteLinks,
			long revisionId); @JsonCreator  ItemDocumentImpl(
			@JsonProperty("id") String jsonId,
			@JsonProperty("labels") @JsonDeserialize(contentAs=TermImpl.class) Map<String, MonolingualTextValue> labels,
			@JsonProperty("descriptions") @JsonDeserialize(contentAs=TermImpl.class) Map<String, MonolingualTextValue> descriptions,
			@JsonProperty("aliases") @JsonDeserialize(using = AliasesDeserializer.class) Map<String, List<MonolingualTextValue>> aliases,
			@JsonProperty("claims") Map<String, List<StatementImpl.PreStatement>> claims,
			@JsonProperty("sitelinks") Map<String, SiteLink> sitelinks,
			@JsonProperty("lastrevid") long revisionId,
			@JacksonInject("siteIri") String siteIri); protected  ItemDocumentImpl(
			ItemIdValue subject,
			Map<String, MonolingualTextValue> labels,
			Map<String, MonolingualTextValue> descriptions,
			Map<String, List<MonolingualTextValue>> aliases,
			Map<String, List<Statement>> claims, 
			Map<String, SiteLink> siteLinks,
			long revisionId); @JsonIgnore @Override ItemIdValue getItemId(); @JsonIgnore @Override ItemIdValue getEntityId(); @JsonProperty("sitelinks") @Override Map<String, SiteLink> getSiteLinks(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override ItemDocument withRevisionId(long newRevisionId); @Override ItemDocument withLabel(MonolingualTextValue newLabel); @Override ItemDocument withDescription(MonolingualTextValue newDescription); @Override ItemDocument withAliases(String language, List<MonolingualTextValue> aliases); @Override ItemDocument withStatement(Statement statement); @Override ItemDocument withoutStatementIds(Set<String> statementIds); }
ItemDocumentImpl extends TermedStatementDocumentImpl implements ItemDocument { @Override public ItemDocument withoutStatementIds(Set<String> statementIds) { Map<String, List<Statement>> newGroups = removeStatements(statementIds, claims); return new ItemDocumentImpl(getItemId(), labels, descriptions, aliases, newGroups, sitelinks, revisionId); } ItemDocumentImpl(
			ItemIdValue id,
			List<MonolingualTextValue> labels,
			List<MonolingualTextValue> descriptions,
			List<MonolingualTextValue> aliases,
			List<StatementGroup> statements,
			List<SiteLink> siteLinks,
			long revisionId); @JsonCreator  ItemDocumentImpl(
			@JsonProperty("id") String jsonId,
			@JsonProperty("labels") @JsonDeserialize(contentAs=TermImpl.class) Map<String, MonolingualTextValue> labels,
			@JsonProperty("descriptions") @JsonDeserialize(contentAs=TermImpl.class) Map<String, MonolingualTextValue> descriptions,
			@JsonProperty("aliases") @JsonDeserialize(using = AliasesDeserializer.class) Map<String, List<MonolingualTextValue>> aliases,
			@JsonProperty("claims") Map<String, List<StatementImpl.PreStatement>> claims,
			@JsonProperty("sitelinks") Map<String, SiteLink> sitelinks,
			@JsonProperty("lastrevid") long revisionId,
			@JacksonInject("siteIri") String siteIri); protected  ItemDocumentImpl(
			ItemIdValue subject,
			Map<String, MonolingualTextValue> labels,
			Map<String, MonolingualTextValue> descriptions,
			Map<String, List<MonolingualTextValue>> aliases,
			Map<String, List<Statement>> claims, 
			Map<String, SiteLink> siteLinks,
			long revisionId); @JsonIgnore @Override ItemIdValue getItemId(); @JsonIgnore @Override ItemIdValue getEntityId(); @JsonProperty("sitelinks") @Override Map<String, SiteLink> getSiteLinks(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override ItemDocument withRevisionId(long newRevisionId); @Override ItemDocument withLabel(MonolingualTextValue newLabel); @Override ItemDocument withDescription(MonolingualTextValue newDescription); @Override ItemDocument withAliases(String language, List<MonolingualTextValue> aliases); @Override ItemDocument withStatement(Statement statement); @Override ItemDocument withoutStatementIds(Set<String> statementIds);  }