Package com.soffid.iam.api
Class AsyncList<E>
- java.lang.Object
-
- com.soffid.iam.api.AsyncList<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Future<Collection<E>>,List<E>
public class AsyncList<E> extends Object implements List<E>, Future<Collection<E>>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)booleanadd(E e)booleanaddAll(int index, Collection<? extends E> c)booleanaddAll(Collection<? extends E> c)protected booleanaddedOnChild(Object e)voidcancel()booleancancel(boolean mayInterruptIfRunning)voidcancel(Throwable th)voidcheckMemoryUsage()voidclear()voidclearExceptionToThrow()booleancontains(Object o)booleancontainsAll(Collection<?> c)voiddone()List<E>get()Eget(int index)Collection<E>get(long timeout, TimeUnit unit)ThrowablegetExceptionToThrow()IntegergetMaxSize()intindexOf(Object o)booleanisCancelled()booleanisDone()booleanisEmpty()Iterator<E>iterator()intlastIndexOf(Object o)ListIterator<E>listIterator()ListIterator<E>listIterator(int index)Eremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Eset(int index, E element)voidsetExceptionToThrow(Throwable exceptionToThrow)voidsetMaxSize(Integer maxSize)voidsetTimeout(long millis)intsize()List<E>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, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
AsyncList
public AsyncList()
-
AsyncList
public AsyncList(AsyncList<?> source)
-
-
Method Detail
-
done
public void done()
-
cancel
public void cancel()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(E e)
-
checkMemoryUsage
public void checkMemoryUsage()
-
addedOnChild
protected boolean addedOnChild(Object e)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
addAll
public boolean addAll(Collection<? extends E> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
clear
public void clear()
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<E>
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<E>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
get
public List<E> get() throws InterruptedException, ExecutionException
- 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
public void cancel(Throwable th)
-
getExceptionToThrow
public Throwable getExceptionToThrow()
-
clearExceptionToThrow
public void clearExceptionToThrow()
-
setExceptionToThrow
public void setExceptionToThrow(Throwable exceptionToThrow)
-
setTimeout
public void setTimeout(long millis)
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIteratorin interfaceList<E>
-
getMaxSize
public Integer getMaxSize()
-
setMaxSize
public void setMaxSize(Integer maxSize)
-
-