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 null
IllegalArgumentException
- if any parameters or their combination is invalidpublic boolean isEmpty()
TermUpdate
isEmpty
in interface TermUpdate
true
if the update is empty, false
otherwisepublic Map<String,MonolingualTextValue> getModified()
TermUpdate
getModified
in interface TermUpdate
public Set<String> getRemoved()
TermUpdate
getRemoved
in interface TermUpdate
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