public interface AliasUpdate
getAdded()
) and removed (see getRemoved()
) aliases or a new
list of aliases that completely replace old aliases (see
getRecreated()
).Modifier and Type | Field and Description |
---|---|
static AliasUpdate |
EMPTY
Empty update that does not alter or remove any aliases.
|
Modifier and Type | Method and Description |
---|---|
List<MonolingualTextValue> |
getAdded()
Returns aliases added in this update.
|
Optional<String> |
getLanguageCode()
Returns language code of aliases in this update.
|
Optional<List<MonolingualTextValue>> |
getRecreated()
Returns the new list of aliases that completely replaces current aliases.
|
Set<MonolingualTextValue> |
getRemoved()
Returns aliases removed in this update.
|
boolean |
isEmpty()
Checks whether the update is empty.
|
static final AliasUpdate EMPTY
boolean isEmpty()
true
if the update is empty, false
otherwiseOptional<String> getLanguageCode()
Optional.empty()
when the update is
emptyOptional<List<MonolingualTextValue>> getRecreated()
Optional.empty()
if aliases are not
being recreatedList<MonolingualTextValue> getAdded()
getRecreated()
must return Optional.empty()
. It is however
possible to add and remove aliases in the same update.Set<MonolingualTextValue> getRemoved()
getRecreated()
must return Optional.empty()
. It is
however possible to add and remove aliases in the same update.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