|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexLinkedList
Inteface to LinkedList of Indexes
Method Summary | |
---|---|
boolean |
add(IndexItem item)
Appends the specified element to the end of this list. |
void |
add(int index,
IndexItem element)
Inserts the specified element at the specified position in this list. |
void |
addFirst(IndexItem item)
Inserts the given element at the beginning of this list. |
void |
addLast(IndexItem item)
Appends the given element to the end of this list. |
void |
clear()
Removes all of the elements from this list. |
IndexItem |
get(int index)
Returns the element at the specified position in this list. |
StoreEntry |
getEntry(StoreEntry entry)
Ensure we have the up to date entry |
IndexItem |
getFirst()
Returns the first element in this list. |
IndexItem |
getLast()
Returns the last element in this list. |
IndexItem |
getNextEntry(IndexItem entry)
Retrieve the next entry after this entry |
IndexItem |
getPrevEntry(IndexItem entry)
Retrive the prev entry after this entry |
IndexItem |
getRoot()
|
int |
indexOf(StoreEntry o)
Returns the index in this list of the first occurrence of the specified element, or -1 if the List does not contain this element. |
boolean |
isEmpty()
is the list empty? |
StoreEntry |
refreshEntry(StoreEntry current)
Update the indexes of a StoreEntry |
void |
remove(IndexItem e)
remove an entry |
Object |
remove(int index)
Removes the element at the specified position in this list. |
StoreEntry |
removeFirst()
Removes and returns the first element from this list. |
Object |
removeLast()
Removes and returns the last element from this list. |
void |
setRoot(IndexItem newRoot)
Set the new Root |
int |
size()
Returns the number of elements in this list. |
Method Detail |
---|
void setRoot(IndexItem newRoot)
newRoot
- IndexItem getRoot()
IndexItem getFirst()
IndexItem getLast()
StoreEntry removeFirst()
Object removeLast()
void addFirst(IndexItem item)
item
- void addLast(IndexItem item)
item
- int size()
boolean isEmpty()
boolean add(IndexItem item)
item
-
void clear()
IndexItem get(int index)
index
- index of element to return.
IndexOutOfBoundsException
- if the specified index is is out of
range (index < 0 || index >= size()).void add(int index, IndexItem element)
index
- index at which the specified element is to be inserted.element
- element to be inserted.
IndexOutOfBoundsException
- if the specified index is out of range (index < 0 || index > size()).Object remove(int index)
index
- the index of the element to removed.
IndexOutOfBoundsException
- if the specified index is out of range (index < 0 || index >= size()).int indexOf(StoreEntry o)
o
- element to search for.
IndexItem getNextEntry(IndexItem entry)
entry
-
IndexItem getPrevEntry(IndexItem entry)
entry
-
void remove(IndexItem e)
e
- StoreEntry getEntry(StoreEntry entry)
entry
-
StoreEntry refreshEntry(StoreEntry current)
current
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |