T
- WARNING: This class will be REMOVED in the next version.
@Deprecated public abstract class CollectionWrapper<T> extends Object implements Collection<T>
CollectionWrapper
Constructor and Description |
---|
CollectionWrapper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e)
Deprecated.
|
boolean |
addAll(Collection<? extends T> c)
Deprecated.
|
protected void |
cache(T object)
Deprecated.
Called by subclasses to add an object to the cache when executing cacheNext().
|
protected abstract boolean |
cacheNext()
Deprecated.
Cache one or more objects from the backend by calling cache(T)
|
void |
clear()
Deprecated.
|
protected abstract void |
closeBackend()
Deprecated.
Close the backend so no more objects can be read from it (getNext()
should only return null afterwards).
|
boolean |
contains(Object o)
Deprecated.
|
boolean |
containsAll(Collection<?> c)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
Iterator<T> |
iterator()
Deprecated.
|
boolean |
remove(Object o)
Deprecated.
|
boolean |
removeAll(Collection<?> c)
Deprecated.
|
boolean |
retainAll(Collection<?> c)
Deprecated.
|
int |
size()
Deprecated.
|
Object[] |
toArray()
Deprecated.
|
<A> A[] |
toArray(A[] a)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
protected abstract boolean cacheNext()
protected abstract void closeBackend()
protected void cache(T object)
public boolean add(T e)
add
in interface Collection<T>
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
public void clear()
clear
in interface Collection<T>
public boolean contains(Object o)
contains
in interface Collection<T>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
public boolean remove(Object o)
remove
in interface Collection<T>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
public int size()
size
in interface Collection<T>
public Object[] toArray()
toArray
in interface Collection<T>
public <A> A[] toArray(A[] a)
toArray
in interface Collection<T>
Copyright © 2014. All Rights Reserved.