public abstract class LabeledDocumentUpdateImpl extends StatementDocumentUpdateImpl implements LabeledStatementDocumentUpdate
LabeledStatementDocumentUpdate
.Modifier | Constructor and Description |
---|---|
protected |
LabeledDocumentUpdateImpl(EntityIdValue entityId,
long revisionId,
TermUpdate labels,
StatementUpdate statements)
Initializes new entity update.
|
Modifier and Type | Method and Description |
---|---|
TermUpdate |
getLabels()
Returns changes in entity labels.
|
boolean |
isEmpty()
Checks whether the update is empty.
|
getStatements
getBaseRevisionId, getEntityId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStatements
getBaseRevisionId, getEntityId
protected LabeledDocumentUpdateImpl(EntityIdValue entityId, long revisionId, TermUpdate labels, StatementUpdate statements)
entityId
- ID of the entity that is to be updatedrevisionId
- base entity revision to be updated or zero if not availablelabels
- changes in entity labels, possibly emptystatements
- changes in entity statements, possibly emptyNullPointerException
- if any required parameter is null
IllegalArgumentException
- if any parameters or their combination is invalidpublic boolean isEmpty()
EntityUpdate
isEmpty
in interface EntityUpdate
isEmpty
in class StatementDocumentUpdateImpl
true
if the update is empty, false
otherwisepublic TermUpdate getLabels()
LabeledDocumentUpdate
getLabels
in interface LabeledDocumentUpdate
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