public class ScannableList<C extends Scannable> extends java.lang.Object implements Scannable, java.util.Collection<C>
Constructor and Description |
---|
ScannableList(java.lang.Class<C> type) |
ScannableList(java.lang.Class<C> type,
int cap) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(C obj) |
void |
add(int idx,
C obj) |
boolean |
addAll(java.util.Collection<? extends C> c) |
void |
clear() |
boolean |
contains(C obj) |
boolean |
contains(java.lang.Object obj) |
boolean |
containsAll(java.util.Collection<?> c) |
ScannableList<C> |
copy(int flags) |
C |
createComponent(ScanWriteUtils.ClassInfo<C> classInfo,
CompositeComponent ancestor) |
void |
ensureCapacity(int minCap) |
C |
get(int idx) |
java.lang.Class<C> |
getTypeParameter() |
int |
indexOf(C obj) |
boolean |
isEmpty() |
boolean |
isWritable()
Returns
true if this component should in fact be written to
secondary storage. |
java.util.Iterator<C> |
iterator() |
C |
remove(int idx) |
boolean |
remove(java.lang.Object obj) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
C |
set(int idx,
C obj) |
int |
size() |
java.lang.Object[] |
toArray() |
<C> C[] |
toArray(C[] array) |
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ScannableList(java.lang.Class<C> type)
public ScannableList(java.lang.Class<C> type, int cap)
public void ensureCapacity(int minCap)
public int indexOf(C obj)
public java.util.Iterator<C> iterator()
public boolean isEmpty()
public java.lang.Object[] toArray()
public <C> C[] toArray(C[] array)
public boolean contains(C obj)
public C get(int idx)
public void clear()
public boolean add(C obj)
public void add(int idx, C obj)
public boolean addAll(java.util.Collection<? extends C> c)
public boolean remove(java.lang.Object obj)
public boolean retainAll(java.util.Collection<?> c)
public boolean removeAll(java.util.Collection<?> c)
public C remove(int idx)
public boolean isWritable()
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.isWritable
in interface Scannable
true
if this component should be written to
secondary storage.public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
scan
and complete
enough to allow full reconstruction of the element.public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannable
write
.public C createComponent(ScanWriteUtils.ClassInfo<C> classInfo, CompositeComponent ancestor) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.lang.Class<C> getTypeParameter()
public ScannableList<C> copy(int flags)
public boolean containsAll(java.util.Collection<?> c)