public class FormUpdateImpl extends StatementDocumentUpdateImpl implements FormUpdate
FormUpdate.| Constructor and Description |
|---|
FormUpdateImpl(FormIdValue entityId,
long revisionId,
TermUpdate representations,
Collection<ItemIdValue> grammaticalFeatures,
StatementUpdate statements)
Initializes new form update.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
FormIdValue |
getEntityId()
Returns ID of the entity that is being updated.
|
Optional<Set<ItemIdValue>> |
getGrammaticalFeatures()
Returns new grammatical features of the form assigned in this update.
|
TermUpdate |
getRepresentations()
Returns changes in form representations.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the update is empty.
|
getStatementsgetBaseRevisionIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetStatementsgetBaseRevisionIdpublic FormUpdateImpl(FormIdValue entityId, long revisionId, TermUpdate representations, Collection<ItemIdValue> grammaticalFeatures, StatementUpdate statements)
entityId - ID of the form that is to be updatedrevisionId - base form revision to be updated or zero if not availablerepresentations - changes in form representations, possibly emptygrammaticalFeatures - new grammatical features of the form or null for no changestatements - changes in entity statements, possibly emptyNullPointerException - if any required parameter is nullIllegalArgumentException - if any parameters or their combination is invalidpublic FormIdValue getEntityId()
EntityUpdategetEntityId in interface EntityUpdategetEntityId in interface FormUpdategetEntityId in class EntityUpdateImplpublic boolean isEmpty()
EntityUpdateisEmpty in interface EntityUpdateisEmpty in class StatementDocumentUpdateImpltrue if the update is empty, false otherwisepublic TermUpdate getRepresentations()
FormUpdategetRepresentations in interface FormUpdatepublic Optional<Set<ItemIdValue>> getGrammaticalFeatures()
FormUpdateOptional.empty(). If grammatical features are being removed without
replacement, this method returns an empty set.getGrammaticalFeatures in interface FormUpdateOptional.empty() if grammatical
features do not changeCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage