danger.storage
Class MountPointList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by danger.storage.MountPointList
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess


public class MountPointList
extends ArrayList

List of MountPoint objects with convenience methods.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Method Summary
 MountPoint findByPath(String path)
          Search the list for a mount point with a particular path.
 MountPoint getMount(int n)
          Get the mount at the specified index.
 MountPoint removeMount(int n)
          Remove the mount at the specified index, and return it.
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
add, equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, containsAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Method Detail

getMount

public MountPoint getMount(int n)
Get the mount at the specified index.


removeMount

public MountPoint removeMount(int n)
Remove the mount at the specified index, and return it.


findByPath

public MountPoint findByPath(String path)
Search the list for a mount point with a particular path.

Returns:
The found MountPoint object or null.