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()
EntityDocument
getEntityId
in interface EntityDocument
public long getRevisionId()
EntityDocument
getRevisionId
in interface EntityDocument
public EntityRedirectDocument withRevisionId(long newRevisionId)
EntityDocument
withRevisionId
in interface EntityDocument
withRevisionId
in interface EntityRedirectDocument
public EntityIdValue getTargetId()
EntityRedirectDocument
getTargetId
in interface EntityRedirectDocument
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