Class MediaInfoUpdateImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.MediaInfoUpdateImpl
- All Implemented Interfaces:
EntityUpdate
,LabeledDocumentUpdate
,LabeledStatementDocumentUpdate
,MediaInfoUpdate
,StatementDocumentUpdate
Jackson implementation of
MediaInfoUpdate
.-
Constructor Summary
ConstructorDescriptionMediaInfoUpdateImpl
(MediaInfoIdValue entityId, long revisionId, TermUpdate labels, StatementUpdate statements) Initializes new media update. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns ID of the entity that is being updated.int
hashCode()
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
getLabels, isEmpty
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, isEmpty
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.LabeledDocumentUpdate
getLabels
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.StatementDocumentUpdate
getStatements
-
Constructor Details
-
MediaInfoUpdateImpl
public MediaInfoUpdateImpl(MediaInfoIdValue entityId, long revisionId, TermUpdate labels, StatementUpdate statements) Initializes new media update.- Parameters:
entityId
- ID of the media that is to be updatedrevisionId
- base media revision to be updated or zero if not availablelabels
- changes in entity labels ornull
for no changestatements
- 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 interfaceMediaInfoUpdate
- Overrides:
getEntityId
in classEntityUpdateImpl
- Returns:
- ID of the updated entity
-
equals
-
hashCode
public int hashCode()
-