Class AliasUpdateImpl

java.lang.Object
org.wikidata.wdtk.datamodel.implementation.AliasUpdateImpl
All Implemented Interfaces:
AliasUpdate

public class AliasUpdateImpl extends Object implements AliasUpdate
Jackson implementation of AliasUpdate.
  • Constructor Details

    • AliasUpdateImpl

      public AliasUpdateImpl(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed)
      Initializes new alias update. This update applies to aliases in one language only. Callers should specify either recreated parameter or added and removed parameters, because combination of the two update approaches is not possible. To remove all aliases, pass empty list in recreated parameter.
      Parameters:
      recreated - new list of aliases that completely replaces the old ones or null to not recreate aliases
      added - aliases added in this update or empty collection for no additions
      removed - aliases removed in this update or empty collection for no removals
      Throws:
      NullPointerException - if added, removed, or any alias is null
      IllegalArgumentException - if given invalid combination of parameters
  • Method Details