|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList com.endeca.navigation.ERecSortKeyList
public class ERecSortKeyList
Collection of record sort keys exposed as a
java.util.List
.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ERecSortKeyList()
|
Method Summary | |
---|---|
void |
add(int index,
Object element)
Inserts the specified element 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). |
Object |
get(int index)
Gets sort key at offset index . |
ERecSortKey |
getKey(int index)
Gets sort key at offset index . |
ERecSortKey |
getKey(String name)
Gets sort key with the name name . |
Object |
remove(int index)
Removes the element at the specified position in this list. |
Object |
set(int index,
Object element)
Replaces the element at the specified position in this list with the specified element |
int |
size()
Gets the number of record sort keys. |
Methods inherited from class java.util.AbstractList |
---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
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, removeAll, retainAll, subList, toArray, toArray |
Constructor Detail |
---|
public ERecSortKeyList()
Method Detail |
---|
public ERecSortKey getKey(int index)
index
. Typed version of
the method get(index) from the List
interface.
Will throw an IndexOutOfBound exception if offset is not legal.
index
- Offset into the list.
IndexOutOfBoundsException
- if index is out
of range.public Object get(int index)
index
. Typed version of
the method get(index) from the List
interface.
Will throw an IndexOutOfBound exception if offset is not legal.
get
in interface List
get
in class AbstractList
index
- Offset into the list.
IndexOutOfBoundsException
- if index is out
of range.public Object set(int index, Object element)
set
in interface List
set
in class AbstractList
index
- index of element to replace.element
- element to be stored at the specified position.
public void add(int index, Object element)
add
in interface List
add
in class AbstractList
index
- index at which the specified element is to be inserted.element
- element to be inserted.
IllegalArgumentException
- if an ERecSortKey
with the same name has already been added to the listpublic Object remove(int index)
remove
in interface List
remove
in class AbstractList
index
- the index of the element to remove.
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public ERecSortKey getKey(String name)
name
.
null
if key could with specified name could
not be found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |