public class TermUpdateImpl extends Object implements TermUpdate
TermUpdate.EMPTY| Constructor and Description |
|---|
TermUpdateImpl(Collection<MonolingualTextValue> modified,
Collection<String> removed)
Initializes new term update.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<String,MonolingualTextValue> |
getModified()
Returns terms added or modified in this update.
|
Set<String> |
getRemoved()
Returns language codes of terms removed in this update.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the update is empty.
|
public TermUpdateImpl(Collection<MonolingualTextValue> modified, Collection<String> removed)
modified - added or changed termsremoved - language codes of removed termsNullPointerException - if any required parameter or its item is nullIllegalArgumentException - if any parameters or their combination is invalidpublic boolean isEmpty()
TermUpdateisEmpty in interface TermUpdatetrue if the update is empty, false otherwisepublic Map<String,MonolingualTextValue> getModified()
TermUpdategetModified in interface TermUpdatepublic Set<String> getRemoved()
TermUpdategetRemoved in interface TermUpdateCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage