Class LiveSearchResults<TYPE>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<LiveSearchEntry<TYPE>>
-
- org.uberfire.ext.widgets.common.client.dropdown.LiveSearchResults<TYPE>
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<LiveSearchEntry<TYPE>>,Collection<LiveSearchEntry<TYPE>>,List<LiveSearchEntry<TYPE>>,RandomAccess
public class LiveSearchResults<TYPE> extends ArrayList<LiveSearchEntry<TYPE>>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description LiveSearchResults()LiveSearchResults(int maxEntries)LiveSearchResults(int maxEntries, Collection<String> itemCollection)LiveSearchResults(Collection<String> keysCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(String key)booleanadd(String key, String value)booleanadd(LiveSearchEntry entry)voidaddKeys(Collection<String> itemCollection)LiveSearchResultssortByKey()LiveSearchResultssortByValue()-
Methods inherited from class java.util.ArrayList
add, addAll, 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 Detail
-
LiveSearchResults
public LiveSearchResults()
-
LiveSearchResults
public LiveSearchResults(int maxEntries)
-
LiveSearchResults
public LiveSearchResults(Collection<String> keysCollection)
-
LiveSearchResults
public LiveSearchResults(int maxEntries, Collection<String> itemCollection)
-
-
Method Detail
-
add
public boolean add(String key)
-
add
public boolean add(LiveSearchEntry entry)
- Specified by:
addin interfaceCollection<TYPE>- Specified by:
addin interfaceList<TYPE>- Overrides:
addin classArrayList<LiveSearchEntry<TYPE>>
-
addKeys
public void addKeys(Collection<String> itemCollection)
-
sortByKey
public LiveSearchResults sortByKey()
-
sortByValue
public LiveSearchResults sortByValue()
-
-