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.
|
getStatements
getBaseRevisionId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getStatements
getBaseRevisionId
public 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 null
IllegalArgumentException
- if any parameters or their combination is invalidpublic FormIdValue getEntityId()
EntityUpdate
getEntityId
in interface EntityUpdate
getEntityId
in interface FormUpdate
getEntityId
in class EntityUpdateImpl
public boolean isEmpty()
EntityUpdate
isEmpty
in interface EntityUpdate
isEmpty
in class StatementDocumentUpdateImpl
true
if the update is empty, false
otherwisepublic TermUpdate getRepresentations()
FormUpdate
getRepresentations
in interface FormUpdate
public Optional<Set<ItemIdValue>> getGrammaticalFeatures()
FormUpdate
Optional.empty()
. If grammatical features are being removed without
replacement, this method returns an empty set.getGrammaticalFeatures
in interface FormUpdate
Optional.empty()
if grammatical
features do not changeCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage