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 void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, Collection<? extends E> c)
boolean
addAll(Collection<? extends E> c)
protected boolean
addedOnChild(Object e)
void
cancel()
boolean
cancel(boolean mayInterruptIfRunning)
void
cancel(Throwable th)
void
checkMemoryUsage()
void
clear()
void
clearExceptionToThrow()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
void
done()
List<E>
get()
E
get(int index)
Collection<E>
get(long timeout, TimeUnit unit)
Throwable
getExceptionToThrow()
Integer
getMaxSize()
int
indexOf(Object o)
boolean
isCancelled()
boolean
isDone()
boolean
isEmpty()
Iterator<E>
iterator()
int
lastIndexOf(Object o)
ListIterator<E>
listIterator()
ListIterator<E>
listIterator(int index)
E
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
E
set(int index, E element)
void
setExceptionToThrow(Throwable exceptionToThrow)
void
setMaxSize(Integer maxSize)
void
setTimeout(long millis)
int
size()
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:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in 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:
isCancelled
in interfaceFuture<E>
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<E>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
get
public List<E> get() throws InterruptedException, ExecutionException
- Specified by:
get
in interfaceFuture<E>
- Throws:
InterruptedException
ExecutionException
-
get
public Collection<E> get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
get
in interfaceFuture<E>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
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:
listIterator
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfaceList<E>
-
getMaxSize
public Integer getMaxSize()
-
setMaxSize
public void setMaxSize(Integer maxSize)
-
-