Class SearchTermList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<de.intranda.api.iiif.search.SearchTerm>
io.goobi.viewer.model.iiif.search.model.SearchTermList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<de.intranda.api.iiif.search.SearchTerm>
,Collection<de.intranda.api.iiif.search.SearchTerm>
,List<de.intranda.api.iiif.search.SearchTerm>
,RandomAccess
A collection of search terms. If a
SearchTerm
is to be added which already exists in the list, the
SearchTerm.getCount()
is increased by one instead- Author:
- florian
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(de.intranda.api.iiif.search.SearchTerm term) Adds the given term to the list if no term with the sameSearchTerm.getMatch()
exists.boolean
addAll
(Collection<? extends de.intranda.api.iiif.search.SearchTerm> c) Methods inherited from class java.util.ArrayList
add, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
SearchTermList
public SearchTermList()Constructor for SearchTermList.
-
-
Method Details
-
add
public boolean add(de.intranda.api.iiif.search.SearchTerm term) Adds the given term to the list if no term with the sameSearchTerm.getMatch()
exists. Otherwise add theSearchTerm.getCount()
of the given term to the existing term -
addAll
-