net.sourceforge.apphere.util
Class SessionList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
net.sourceforge.apphere.util.SessionList
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable
- public class SessionList
- extends java.util.ArrayList
- Author:
- Dewi Roberts
- See Also:
- Serialized Form
Constructor Summary |
SessionList()
Constructor for SessionList. |
SessionList(java.util.Collection c)
Constructor for SessionList accepts a Collection of Sessions. |
SessionList(int initialCapacity)
Constructor for SessionList. |
SessionList(Session[] sessArray)
Constructor for SessionList accepts an array of Sessions. |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
SessionList
public SessionList(int initialCapacity)
- Constructor for SessionList.
- Parameters:
initialCapacity
-
SessionList
public SessionList()
- Constructor for SessionList.
SessionList
public SessionList(java.util.Collection c)
- Constructor for SessionList accepts a Collection of Sessions.
- Parameters:
c
-
SessionList
public SessionList(Session[] sessArray)
- Constructor for SessionList accepts an array of Sessions.
- Parameters:
sessArray
-
add
public void add(int index,
Session element)
- See Also:
List.add(int, Object)
add
public boolean add(Session o)
- See Also:
Collection.add(Object)
contains
public boolean contains(Session o)
- See Also:
Collection.contains(Object)
getSession
public Session getSession(int index)
- See Also:
List.get(int)
indexOf
public int indexOf(Session o)
- See Also:
List.indexOf(Object)
lastIndexOf
public int lastIndexOf(Session o)
- See Also:
List.lastIndexOf(Object)
set
public java.lang.Object set(int index,
Session element)
- See Also:
List.set(int, Object)
remove
public boolean remove(Session o)
- See Also:
Collection.remove(Object)
toSessionArray
public Session[] toSessionArray()
- casts array elements as Session, otherwise they'd be Object