danger.storage
Class MountPointList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
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
| 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 interface java.util.List |
add, containsAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
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.