|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartisynth.core.modelbase.ScannableList<C>
public class ScannableList<C extends Scannable>
Constructor Summary | |
---|---|
ScannableList(java.lang.Class<C> type)
|
|
ScannableList(java.lang.Class<C> type,
int cap)
|
Method Summary | ||
---|---|---|
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(artisynth.core.modelbase.ScannableList.ClassInfo classInfo)
|
|
void |
ensureCapacity(int minCap)
|
|
C |
get(int idx)
|
|
java.lang.Class<C> |
getTypeParameter()
Returns the base type for the class parameterization. |
|
boolean |
hasParameterizedType()
Returns true if this class explicitly utilizes a parameterized type. |
|
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()
|
|
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public ScannableList(java.lang.Class<C> type)
public ScannableList(java.lang.Class<C> type, int cap)
Method Detail |
---|
public void ensureCapacity(int minCap)
public int indexOf(C obj)
public java.util.Iterator<C> iterator()
iterator
in interface java.lang.Iterable<C extends Scannable>
iterator
in interface java.util.Collection<C extends Scannable>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<C extends Scannable>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<C extends Scannable>
public <C> C[] toArray(C[] array)
toArray
in interface java.util.Collection<C extends Scannable>
public boolean contains(C obj)
public C get(int idx)
public C set(int idx, C obj)
public int size()
size
in interface java.util.Collection<C extends Scannable>
public void clear()
clear
in interface java.util.Collection<C extends Scannable>
public boolean add(C obj)
add
in interface java.util.Collection<C extends Scannable>
public void add(int idx, C obj)
public boolean addAll(java.util.Collection<? extends C> c)
addAll
in interface java.util.Collection<C extends Scannable>
public boolean remove(java.lang.Object obj)
remove
in interface java.util.Collection<C extends Scannable>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<C extends Scannable>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<C extends Scannable>
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.
write
in interface Scannable
pw
- stream for writing the elementfmt
- numeric formating informationref
- optional reference object which can be used for producing references to
other objects
java.io.IOException
- if an I/O error occuredpublic void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannable
write
.
scan
in interface Scannable
rtok
- Tokenizer from which to scan the elementref
- optional reference object which can be used for resolving references to
other objects
java.io.IOException
- if an I/O or formatting error occuredpublic C createComponent(artisynth.core.modelbase.ScannableList.ClassInfo classInfo) 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()
ParameterizedClass
getTypeParameter
in interface ParameterizedClass<C extends Scannable>
public boolean hasParameterizedType()
ParameterizedClass
hasParameterizedType
in interface ParameterizedClass<C extends Scannable>
public ScannableList<C> copy(int flags)
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<C extends Scannable>
public boolean contains(java.lang.Object obj)
contains
in interface java.util.Collection<C extends Scannable>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |