com.endeca.navigation
Class StratifiedDimValList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by com.endeca.navigation.StratifiedDimValList
All Implemented Interfaces:
Iterable, Collection, List

public class StratifiedDimValList
extends AbstractList
implements List

Class that encapsulates a collection of stratified dimension values (StratifiedDimVal objects).


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
StratifiedDimValList()
          Default constructor that creates an empty list.
 
Method Summary
 void add(int index, Object elementAt)
          Inserts the specified StratifiedDimVal at the specified position in this list.
 Object get(int index)
          Gets the StratifiedDimVal at position index.
 int size()
          Returns the number of elements in this list.
 String toString()
          Returns the string representation of the list of stratified dimension values.
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Constructor Detail

StratifiedDimValList

public StratifiedDimValList()
Default constructor that creates an empty list.

Method Detail

add

public void add(int index,
                Object elementAt)
Inserts the specified StratifiedDimVal at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Specified by:
add in interface List
Overrides:
add in class AbstractList
Parameters:
index - Offset of the element.
elementAt - StratifiedDimVal object to be inserted.
Throws:
IndexOutOfBoundsException - If index is out of range.

get

public Object get(int index)
Gets the StratifiedDimVal at position index.

Specified by:
get in interface List
Specified by:
get in class AbstractList
Parameters:
index - Offset of element.
Returns:
StratifiedDimVal object at position index.
Throws:
IndexOutOfBoundsException - If index is out of range.

size

public int size()
Returns the number of elements in this list.

Specified by:
size in interface Collection
Specified by:
size in interface List
Specified by:
size in class AbstractCollection
Returns:
Number of elements (StratifiedDimVal objects) in the list.

toString

public String toString()
Returns the string representation of the list of stratified dimension values.

Overrides:
toString in class AbstractCollection
Returns:
The string representation of the list of stratified dimension values.


2010 Endeca Technologies, Inc.
Endeca Confidential