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, getDescriptions
getLabels
getStatements
getBaseRevisionId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAliases, getDescriptions
getLabels
getStatements
getBaseRevisionId
public 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 null
IllegalArgumentException
- if any parameters or their combination is invalidpublic ItemIdValue getEntityId()
EntityUpdate
getEntityId
in interface EntityUpdate
getEntityId
in interface ItemUpdate
getEntityId
in class EntityUpdateImpl
public boolean isEmpty()
EntityUpdate
isEmpty
in interface EntityUpdate
isEmpty
in class TermedDocumentUpdateImpl
true
if the update is empty, false
otherwisepublic Map<String,SiteLink> getModifiedSiteLinks()
ItemUpdate
getModifiedSiteLinks
in interface ItemUpdate
public Set<String> getRemovedSiteLinks()
ItemUpdate
getRemovedSiteLinks
in interface ItemUpdate
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage