public class ItemUpdateImpl extends TermedDocumentUpdateImpl implements ItemUpdate
ItemUpdate.| Constructor and Description |
|---|
ItemUpdateImpl(ItemIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements,
Collection<SiteLink> modifiedSiteLinks,
Collection<String> removedSiteLinks)
Initializes new item update.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ItemIdValue |
getEntityId()
Returns ID of the entity that is being updated.
|
Map<String,SiteLink> |
getModifiedSiteLinks()
Returns site links added or modified in this update.
|
Set<String> |
getRemovedSiteLinks()
Returns site keys of site links removed in this update.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the update is empty.
|
getAliases, getDescriptionsgetLabelsgetStatementsgetBaseRevisionIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAliases, getDescriptionsgetLabelsgetStatementsgetBaseRevisionIdpublic ItemUpdateImpl(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String,AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks)
entityId - ID of the item that is to be updatedrevisionId - base item revision to be updated or zero if not availablelabels - changes in entity labels or null for no changedescriptions - changes in entity descriptions or null for no changealiases - changes in entity aliases, possibly emptystatements - changes in entity statements, possibly emptymodifiedSiteLinks - added or replaced site linksremovedSiteLinks - site keys of removed site linksNullPointerException - if any required parameter or its item is nullIllegalArgumentException - if any parameters or their combination is invalidpublic ItemIdValue getEntityId()
EntityUpdategetEntityId in interface EntityUpdategetEntityId in interface ItemUpdategetEntityId in class EntityUpdateImplpublic boolean isEmpty()
EntityUpdateisEmpty in interface EntityUpdateisEmpty in class TermedDocumentUpdateImpltrue if the update is empty, false otherwisepublic Map<String,SiteLink> getModifiedSiteLinks()
ItemUpdategetModifiedSiteLinks in interface ItemUpdatepublic Set<String> getRemovedSiteLinks()
ItemUpdategetRemovedSiteLinks in interface ItemUpdateCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage