|
|||||||||
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.ERecIdList
public class ERecIdList
List of record specifications. Primarily used to generate URLs and MDEX Engine queries.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ERecIdList()
Default constructor. |
|
ERecIdList(long erecId)
Deprecated. This method may not be supported in future versions of the MDEX Engine API - use ERecIdList(String) instead.
Constructor that takes a single id and makes a record id list with
only one element. |
|
ERecIdList(String ids)
Constructor that takes a string-based set of record specs and parses and populates the list with the string. |
Method Summary | |
---|---|
void |
addERecId(long id)
Deprecated. This method may not be supported in future versions of the MDEX Engine API - use addERecSpec(String) instead.
Adds a record ID to the list. |
void |
addERecSpec(String spec)
Adds a record specification to the list. |
Object |
get(int index)
Gets the element at position index . |
long |
getERecId(int i)
Deprecated. This method may not be supported in future versions of the MDEX Engine API - use getERecSpec(int) instead.
Gets the record ID at position index . |
String |
getERecSpec(int i)
Gets the record specification at position index . |
Object |
remove(int index)
Removes the element at the specified position in this list. |
int |
size()
Returns the number of elements in this list. |
String |
toString()
Generates the string-based representation of the this by returning a space delimited sequence of record ids. |
Methods inherited from class java.util.AbstractList |
---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, 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, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, set, subList, toArray, toArray |
Constructor Detail |
---|
public ERecIdList()
public ERecIdList(String ids)
ids
- Space-delimited sequence of record specifications.public ERecIdList(long erecId)
ERecIdList(String)
instead.
Constructor that takes a single id and makes a record id list with
only one element.
erecId
- Single record id member of this list.Method Detail |
---|
public void addERecSpec(String spec)
spec
- Specification to add to the list.public String getERecSpec(int i)
index
.
index
.public Object remove(int index)
remove
in interface List
remove
in class AbstractList
index
- Offset of element.
index
.
IndexOutOfBoundsException
- If the index is out of range.public Object get(int index)
index
. Object
returned is of type String
. Not recommended
as object returned is of type Long
.
Interface present for List
interface.
get
in interface List
get
in class AbstractList
index
- Offset of element.
index
.
IndexOutOfBoundsException
- If the index is out of range.public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public String toString()
toString
in class AbstractCollection
public void addERecId(long id)
addERecSpec(String)
instead.
Adds a record ID to the list.
id
- ID to add to the list.public long getERecId(int i) throws NumberFormatException
getERecSpec(int)
instead.
Gets the record ID at position index
.
index
.
NumberFormatException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |