|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.crosswire.common.util.RobustList
public class RobustList
This is a version of LinkedList that is not fail-fast.
|
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence| Nested Class Summary | |
|---|---|
private class |
RobustList.Entry
|
private static class |
RobustList.RobustListEnumeration
|
| Field Summary | |
|---|---|
protected RobustList.Entry |
foot
|
protected RobustList.Entry |
head
|
protected static Logger |
log
The log stream |
protected int |
size
|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
RobustList()
|
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
Appends the specified element to the end of this list. |
void |
clear()
Removes all of the elements from this list. |
boolean |
contains(Object o)
Does this list contains the specified element? |
protected void |
debug(String title)
Debug this implementation |
Enumeration |
elements()
Returns a list-iterator of the elements in this list |
private RobustList.Entry |
findEntry(int index)
Return the indexed entry. |
Object |
get(int index)
Returns the element at the specified position in this list. |
int |
indexOf(Object 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. |
Object |
remove(int index)
Removes the element at the specified position in this list. |
boolean |
remove(Object o)
Removes the first occurrence of the specified element in this list. |
int |
size()
Returns the number of elements in this list. |
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, isEmpty, 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, containsAll, equals, hashCode, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, retainAll, set, subList, toArray, toArray |
| Field Detail |
|---|
protected RobustList.Entry head
protected RobustList.Entry foot
protected int size
protected static final Logger log
| Constructor Detail |
|---|
public RobustList()
| Method Detail |
|---|
public boolean contains(Object o)
contains in interface Collectioncontains in interface Listcontains in class AbstractCollectiono - element whose presence in this list is to be tested.
public int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic boolean add(Object o)
add in interface Collectionadd in interface Listadd in class AbstractListo - element to be appended to this list.public Object remove(int index)
remove in interface Listremove in class AbstractListindex - the index of the element to removed.
public boolean remove(Object o)
remove in interface Collectionremove in interface Listremove in class AbstractCollectiono - element to be removed from this list, if present.
public void clear()
clear in interface Collectionclear in interface Listclear in class AbstractListpublic Object get(int index)
get in interface Listget in class AbstractListindex - index of element to return.
private RobustList.Entry findEntry(int index)
public int indexOf(Object o)
indexOf in interface ListindexOf in class AbstractListo - element to search for.
public Enumeration elements()
protected void debug(String title)
|
Copyright ? 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||