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
ConstructorsConstructorDescriptionMediaInfoUpdateImpl(MediaInfoIdValue entityId, long revisionId, TermUpdate labels, StatementUpdate statements) Initializes new media update. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns ID of the entity that is being updated.inthashCode()Methods inherited from class org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
getLabels, isEmptyMethods inherited from class org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
getStatementsMethods inherited from class org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
getBaseRevisionIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityUpdate
getBaseRevisionId, isEmptyMethods inherited from interface org.wikidata.wdtk.datamodel.interfaces.LabeledDocumentUpdate
getLabelsMethods 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 ornullfor no changestatements- changes in entity statements, possibly empty- Throws:
NullPointerException- if any required parameter isnullIllegalArgumentException- if any parameters or their combination is invalid
-
-
Method Details
-
getEntityId
Description copied from interface:EntityUpdateReturns ID of the entity that is being updated.- Specified by:
getEntityIdin interfaceEntityUpdate- Specified by:
getEntityIdin interfaceMediaInfoUpdate- Overrides:
getEntityIdin classEntityUpdateImpl- Returns:
- ID of the updated entity
-
equals
-
hashCode
public int hashCode()
-