PIP.Collections
Class Range<E>

java.lang.Object
  extended by PIP.Collections.Persistent.AbstractCollection<E>
      extended by PIP.Collections.Persistent.AbstractList<E>
          extended by PIP.Collections.Range<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>

public class Range<E>
extends AbstractList<E>
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Range(java.util.List<E> v, int s, int e)
           
 
Method Summary
 boolean containsIndex(int i)
           
 E get(int index)
          Returns the element at the specified position in this list.
 int getEnd()
           
 int getStart()
           
 int size()
          Returns the number of elements in this collection.
 
Methods inherited from class PIP.Collections.Persistent.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
 
Methods inherited from class PIP.Collections.Persistent.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

Range

public Range(java.util.List<E> v,
             int s,
             int e)
Method Detail

get

public E get(int index)
Description copied from class: AbstractList
Returns the element at the specified position in this list.

Specified by:
get in interface java.util.List<E>
Specified by:
get in class AbstractList<E>
Parameters:
index - index of element to return.
Returns:
the element at the specified position in this list.

size

public int size()
Description copied from class: AbstractCollection
Returns the number of elements in this collection. If the collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Specified by:
size in interface java.util.Collection<E>
Specified by:
size in interface java.util.List<E>
Specified by:
size in class AbstractCollection<E>
Returns:
the number of elements in this collection.

getStart

public int getStart()

getEnd

public int getEnd()

containsIndex

public boolean containsIndex(int i)