Class TermUpdateImpl

java.lang.Object
org.wikidata.wdtk.datamodel.implementation.TermUpdateImpl
All Implemented Interfaces:
TermUpdate

public class TermUpdateImpl extends Object implements TermUpdate
Jackson implementation of TermUpdate.
  • Constructor Details

  • Method Details

    • isEmpty

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

      public Map<String,MonolingualTextValue> getModified()
      Description copied from interface: TermUpdate
      Returns terms added or modified in this update. Existing terms are preserved if their language code is not listed here.
      Specified by:
      getModified in interface TermUpdate
      Returns:
      added or modified terms indexed by language code
    • getRemoved

      public Set<String> getRemoved()
      Description copied from interface: TermUpdate
      Returns language codes of terms removed in this update.
      Specified by:
      getRemoved in interface TermUpdate
      Returns:
      language codes of removed terms
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object