@Test public void testNullEdit() { Statement s1 = StatementBuilder.forSubjectAndProperty(Q1, P1) .withValue(Q1).withId("ID-s1").build(); Statement s1dup = StatementBuilder.forSubjectAndProperty(Q1, P1) .withValue(Q1).build(); Statement s2 = StatementBuilder.forSubjectAndProperty(Q1, P1) .withValue(Q1).withId("ID-s2").build(); ItemDocument currentDocument = ItemDocumentBuilder.forItemId(Q1) .withStatement(s1).build(); StatementUpdate su = new StatementUpdate(currentDocument, Collections.singletonList(s1dup), Collections.singletonList(s2)); assertTrue(su.isEmptyEdit()); }
@JsonIgnore public boolean isEmptyEdit() { return getUpdatedStatements().isEmpty(); }
StatementUpdate { @JsonIgnore public boolean isEmptyEdit() { return getUpdatedStatements().isEmpty(); } }
StatementUpdate { @JsonIgnore public boolean isEmptyEdit() { return getUpdatedStatements().isEmpty(); } StatementUpdate(StatementDocument currentDocument,
			List<Statement> addStatements, List<Statement> deleteStatements); }
StatementUpdate { @JsonIgnore public boolean isEmptyEdit() { return getUpdatedStatements().isEmpty(); } StatementUpdate(StatementDocument currentDocument,
			List<Statement> addStatements, List<Statement> deleteStatements); @JsonIgnore String getJsonUpdateString(); StatementDocument performEdit(WbEditingAction action, boolean editAsBot, String summary, List<String> tags); @JsonProperty("claims") @JsonInclude(Include.NON_EMPTY) List<Statement> getUpdatedStatements(); @JsonIgnore boolean isEmptyEdit(); void setGuidGenerator(GuidGenerator generator); }
StatementUpdate { @JsonIgnore public boolean isEmptyEdit() { return getUpdatedStatements().isEmpty(); } StatementUpdate(StatementDocument currentDocument,
			List<Statement> addStatements, List<Statement> deleteStatements); @JsonIgnore String getJsonUpdateString(); StatementDocument performEdit(WbEditingAction action, boolean editAsBot, String summary, List<String> tags); @JsonProperty("claims") @JsonInclude(Include.NON_EMPTY) List<Statement> getUpdatedStatements(); @JsonIgnore boolean isEmptyEdit(); void setGuidGenerator(GuidGenerator generator);  }