|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
org.mmbase.bridge.implementation.BasicList<E>
public class BasicList<E extends Comparable<? super E>>
A list of objects. This is the base class for all basic implementations of the bridge lists.
| Nested Class Summary | |
|---|---|
protected class |
BasicList.BasicIterator
|
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
(package private) |
BasicList()
|
|
BasicList(BridgeList<? extends E> b)
|
protected |
BasicList(Collection c)
|
| Method Summary | |
|---|---|
void |
add(int i,
E e)
|
protected E |
convert(Object o)
converts the object in the list to the excpected format |
protected E |
convert(Object o,
int index)
|
protected void |
convertAll()
|
E |
get(int i)
|
Map<Object,Object> |
getProperties()
Returns an (unmodifiable) view on all properties of this list (See BridgeList.getProperty(java.lang.Object)). |
Object |
getProperty(Object key)
Retrieves a property previously set for this list. |
E |
remove(int i)
|
E |
set(int i,
E e)
|
void |
setProperty(Object key,
Object value)
Sets a property for this list. |
int |
size()
|
void |
sort()
Sorts this list according to a default sort order. |
void |
sort(Comparator<? super E> comparator)
Sorts this list according to a specified sort order |
BridgeList<E> |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, 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, toArray |
| Constructor Detail |
|---|
BasicList()
protected BasicList(Collection c)
public BasicList(BridgeList<? extends E> b)
| Method Detail |
|---|
public Object getProperty(Object key)
BridgeList
getProperty in interface BridgeList<E extends Comparable<? super E>>key - the key of the property
public void setProperty(Object key,
Object value)
BridgeList
setProperty in interface BridgeList<E extends Comparable<? super E>>key - the key of the propertyvalue - the property valuepublic Map<Object,Object> getProperties()
BridgeListBridgeList.getProperty(java.lang.Object)).
getProperties in interface BridgeList<E extends Comparable<? super E>>protected E convert(Object o)
protected final E convert(Object o,
int index)
public E get(int i)
get in interface List<E extends Comparable<? super E>>get in class AbstractList<E extends Comparable<? super E>>public int size()
size in interface Collection<E extends Comparable<? super E>>size in interface List<E extends Comparable<? super E>>size in class AbstractCollection<E extends Comparable<? super E>>
public E set(int i,
E e)
set in interface List<E extends Comparable<? super E>>set in class AbstractList<E extends Comparable<? super E>>
public void add(int i,
E e)
add in interface List<E extends Comparable<? super E>>add in class AbstractList<E extends Comparable<? super E>>public E remove(int i)
remove in interface List<E extends Comparable<? super E>>remove in class AbstractList<E extends Comparable<? super E>>public void sort()
BridgeList
sort in interface BridgeList<E extends Comparable<? super E>>public void sort(Comparator<? super E> comparator)
BridgeList
sort in interface BridgeList<E extends Comparable<? super E>>comparator - the comparator defining the sort orderprotected void convertAll()
public Object[] toArray()
toArray in interface Collection<E extends Comparable<? super E>>toArray in interface List<E extends Comparable<? super E>>toArray in class AbstractCollection<E extends Comparable<? super E>>
public BridgeList<E> subList(int fromIndex,
int toIndex)
subList in interface List<E extends Comparable<? super E>>subList in interface BridgeList<E extends Comparable<? super E>>subList in class AbstractList<E extends Comparable<? super E>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||