public class EntityRedirectDocumentImpl extends Object implements EntityRedirectDocument
EntityRedirectDocument| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
EntityIdValue |
getEntityId()
Returns the ID of the entity that the data refers to
|
long |
getRevisionId()
Returns the revision ID of this document, or 0 if no id is known.
|
EntityIdValue |
getTargetId()
Returns the ID of the entity that the redirection target to.
|
int |
hashCode() |
String |
toString() |
EntityRedirectDocument |
withRevisionId(long newRevisionId)
Returns a copy of this document with an updated revision id.
|
public EntityIdValue getEntityId()
EntityDocumentgetEntityId in interface EntityDocumentpublic long getRevisionId()
EntityDocumentgetRevisionId in interface EntityDocumentpublic EntityRedirectDocument withRevisionId(long newRevisionId)
EntityDocumentwithRevisionId in interface EntityDocumentwithRevisionId in interface EntityRedirectDocumentpublic EntityIdValue getTargetId()
EntityRedirectDocumentgetTargetId in interface EntityRedirectDocumentCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage