Class SenseUpdateImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.SenseUpdateImpl
- All Implemented Interfaces:
EntityUpdate
,SenseUpdate
,StatementDocumentUpdate
Jackson implementation of
SenseUpdate
.-
Constructor Summary
ConstructorDescriptionSenseUpdateImpl
(SenseIdValue entityId, long revisionId, TermUpdate glosses, StatementUpdate statements) Initializes new sense update. -
Method Summary
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
getStatements
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
getBaseRevisionId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityUpdate
getBaseRevisionId
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.StatementDocumentUpdate
getStatements
-
Constructor Details
-
SenseUpdateImpl
public SenseUpdateImpl(SenseIdValue entityId, long revisionId, TermUpdate glosses, StatementUpdate statements) Initializes new sense update.- Parameters:
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 empty- Throws:
NullPointerException
- if any required parameter isnull
IllegalArgumentException
- if any parameters or their combination is invalid
-
-
Method Details
-
getEntityId
Description copied from interface:EntityUpdate
Returns ID of the entity that is being updated.- Specified by:
getEntityId
in interfaceEntityUpdate
- Specified by:
getEntityId
in interfaceSenseUpdate
- Overrides:
getEntityId
in classEntityUpdateImpl
- Returns:
- ID of the updated entity
-
isEmpty
public boolean isEmpty()Description copied from interface:EntityUpdate
Checks whether the update is empty. Empty update will not change the entity in any way.- Specified by:
isEmpty
in interfaceEntityUpdate
- Overrides:
isEmpty
in classStatementDocumentUpdateImpl
- Returns:
true
if the update is empty,false
otherwise
-
getGlosses
Description copied from interface:SenseUpdate
Returns changes in sense glosses.- Specified by:
getGlosses
in interfaceSenseUpdate
- Returns:
- update of sense glosses, possibly empty
-
equals
-
hashCode
public int hashCode()
-