Interface StatementUpdate

All Known Implementing Classes:
StatementUpdateImpl

public interface StatementUpdate
Collection of statement changes.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final StatementUpdate
    Empty update that does not alter or add any statements.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns statements added to the entity in this update.
    Returns IDs of statements removed from the entity in this update.
    Returns entity statements modified in this update.
    boolean
    Checks whether the update is empty.
  • Field Details

    • EMPTY

      static final StatementUpdate EMPTY
      Empty update that does not alter or add any statements.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Checks whether the update is empty. Empty update will not change or remove any statements.
      Returns:
      true if the update is empty, false otherwise
    • getAdded

      List<Statement> getAdded()
      Returns statements added to the entity in this update.
      Returns:
      list of added statements
    • getReplaced

      Map<String,Statement> getReplaced()
      Returns entity statements modified in this update.
      Returns:
      modified statements indexed by statement ID
    • getRemoved

      Set<String> getRemoved()
      Returns IDs of statements removed from the entity in this update.
      Returns:
      list of IDs of removed statements