Package com.soffid.iam.base.api
Class AsyncList<E>
java.lang.Object
com.soffid.iam.base.api.AsyncList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Future<Collection<E>>,List<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends E> c) booleanaddAll(Collection<? extends E> c) protected booleanvoidcancel()booleancancel(boolean mayInterruptIfRunning) voidvoidclear()booleanbooleancontainsAll(Collection<?> c) voiddone()get()get(int index) intintbooleanbooleanisDone()booleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) voidsetMaxSize(int maxSize) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
AsyncList
public AsyncList()
-
-
Method Details
-
done
public void done() -
cancel
public void cancel() -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
addedOnChild
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
isDone
public boolean isDone() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<E>
-
addAll
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
get
- Specified by:
getin interfaceFuture<E>- Throws:
InterruptedExceptionExecutionException
-
get
public Collection<E> get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<E>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
cancel
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
setMaxSize
public void setMaxSize(int maxSize) -
getMaxSize
public int getMaxSize()
-