|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- Model component type found in this listpublic interface ComponentListView<E extends ModelComponent>
A read-only view of a ComponentList that allows it's contents to be queried but not modified.
Method Summary | |
---|---|
boolean |
contains(E comp)
Returns true if a particular component is contained in this list. |
E |
get(int idx)
Get the component at a particular index, or null if there is no such component. |
E |
get(java.lang.String name)
Get the component with particular name, or null if there is no such component. |
E |
getByNumber(int num)
Get the component with the specified number, or null if there is no such component. |
java.lang.String |
getName()
Gets the name of this component list. |
java.lang.String |
getShortName()
Gets the short name of this component list. |
int |
indexOf(ModelComponent comp)
Get the index of a particular component in this list, or -1 if the specified component is not present. |
java.util.Iterator<E> |
iterator()
Return an iterator over all components in this list. |
int |
nextComponentNumber()
Returns the number that will be assigned to the next component added to this list. |
int |
size()
Get the number of components in this list. |
Methods inherited from interface maspack.util.ListView |
---|
contains |
Method Detail |
---|
java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E extends ModelComponent>
iterator
in interface ListView<E extends ModelComponent>
E get(int idx)
get
in interface ListView<E extends ModelComponent>
idx
- index of the component
E getByNumber(int num)
num
- number of the component
E get(java.lang.String name)
name
- name of the component
int size()
size
in interface ListView<E extends ModelComponent>
int indexOf(ModelComponent comp)
comp
- component to search for
boolean contains(E comp)
comp
- component to search for
int nextComponentNumber()
java.lang.String getName()
java.lang.String getShortName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |