|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uky.rch.ept.data.ResourceList
A ResourceList is used to hold a collection of ResourceDescriptors. This class is a wrapper for java.util.TreeSet to restrict elements to the type ResourceDesciptor.
| Constructor Summary | |
ResourceList()
Creates an empty ResourceList object |
|
| Method Summary | |
void |
add(ResourceDescriptor rd)
Appends the specified ResourceDescriptor to the end of this ResourceList. |
void |
add(ResourceList rl)
|
void |
clear()
Removes all of the ResourceDescriptors from this list. |
boolean |
contains(ResourceDescriptor rd)
Tests if the specified ResourceDescriptor is in this list |
Iterator |
elements()
Returns an iterator on the ResourceDescriptors in this list. |
ResourceDescriptor |
first()
Returns the first ResourceDescriptor in the list. |
boolean |
isEmpty()
Tests if this list has no ResourceDescriptors. |
boolean |
remove(ResourceDescriptor rd)
Removes the specified ResourceDescriptor from this list. |
int |
size()
Returns the number of ResourceDescriptors in this list |
ResourceDescriptor[] |
toArray()
Returns an array containing all of the ResourceDescriptors in this list |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResourceList()
| Method Detail |
public void add(ResourceDescriptor rd)
rd - ResourceDescriptor to be added to this list.public void add(ResourceList rl)
public void clear()
public boolean contains(ResourceDescriptor rd)
rd - The ResourceDescriptor to look for.
public Iterator elements()
public boolean isEmpty()
public boolean remove(ResourceDescriptor rd)
rd - the ResourceDescriptor to remove from the list.
public int size()
public ResourceDescriptor[] toArray()
public ResourceDescriptor first()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||