public class SenseUpdateImpl extends StatementDocumentUpdateImpl implements SenseUpdate
SenseUpdate
.Constructor and Description |
---|
SenseUpdateImpl(SenseIdValue entityId,
long revisionId,
TermUpdate glosses,
StatementUpdate statements)
Initializes new sense update.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SenseIdValue |
getEntityId()
Returns ID of the entity that is being updated.
|
TermUpdate |
getGlosses()
Returns changes in sense glosses.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the update is empty.
|
getStatements
getBaseRevisionId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getStatements
getBaseRevisionId
public SenseUpdateImpl(SenseIdValue entityId, long revisionId, TermUpdate glosses, StatementUpdate statements)
entityId
- ID of the sense that is to be updatedrevisionId
- base sense revision to be updated or zero if not availableglosses
- changes in sense glosses, possibly emptystatements
- changes in entity statements, possibly emptyNullPointerException
- if any required parameter is null
IllegalArgumentException
- if any parameters or their combination is invalidpublic SenseIdValue getEntityId()
EntityUpdate
getEntityId
in interface EntityUpdate
getEntityId
in interface SenseUpdate
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 getGlosses()
SenseUpdate
getGlosses
in interface SenseUpdate
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