org.sakaiproject.component.legacy.site
Class ResourceVector

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byorg.sakaiproject.component.legacy.site.ResourceVector
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class ResourceVector
extends Vector

ResourceVector is a Vector of Identifiables....

Version:
$Revision: 2454 $
Author:
University of Michigan, Sakai Software Development Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ResourceVector()
          Constructor.
ResourceVector(Collection c)
          Constructor.
ResourceVector(int initialCapacity)
          Constructor.
ResourceVector(int initialCapacity, int capacityIncrement)
          Constructor.
 
Method Summary
 Identifiable getById(String id)
          Find the first item with this Resource id.
 void moveDown(Identifiable entry)
          Move an entry one down towards the end of the list.
 void moveUp(Identifiable entry)
          Move an entry one up towards the start of the list.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

ResourceVector

public ResourceVector(int initialCapacity,
                      int capacityIncrement)
Constructor.


ResourceVector

public ResourceVector(int initialCapacity)
Constructor.


ResourceVector

public ResourceVector(Collection c)
Constructor.


ResourceVector

public ResourceVector()
Constructor.

Method Detail

getById

public Identifiable getById(String id)
Find the first item with this Resource id.

Parameters:
id - The resource id.
Returns:
the Resource that has this id, first in the list.

moveUp

public void moveUp(Identifiable entry)
Move an entry one up towards the start of the list.

Parameters:
entry - The resource to move.

moveDown

public void moveDown(Identifiable entry)
Move an entry one down towards the end of the list.

Parameters:
entry - The resource to move.