Class StatementUpdateImpl

java.lang.Object
org.wikidata.wdtk.datamodel.implementation.StatementUpdateImpl
All Implemented Interfaces:
StatementUpdate

public class StatementUpdateImpl extends Object implements StatementUpdate
Jackson implementation of StatementUpdate.
See Also:
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Description copied from interface: StatementUpdate
      Checks whether the update is empty. Empty update will not change or remove any statements.
      Specified by:
      isEmpty in interface StatementUpdate
      Returns:
      true if the update is empty, false otherwise
    • getAdded

      public List<Statement> getAdded()
      Description copied from interface: StatementUpdate
      Returns statements added to the entity in this update.
      Specified by:
      getAdded in interface StatementUpdate
      Returns:
      list of added statements
    • getReplaced

      public Map<String,Statement> getReplaced()
      Description copied from interface: StatementUpdate
      Returns entity statements modified in this update.
      Specified by:
      getReplaced in interface StatementUpdate
      Returns:
      modified statements indexed by statement ID
    • getRemoved

      public Set<String> getRemoved()
      Description copied from interface: StatementUpdate
      Returns IDs of statements removed from the entity in this update.
      Specified by:
      getRemoved in interface StatementUpdate
      Returns:
      list of IDs of removed statements
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object