public class BasicList<E extends Comparable<? super E>> extends AbstractList<E> implements BridgeList<E>, Serializable, RandomAccess
| Modifier and Type | Class and Description |
|---|---|
protected class |
BasicList.BasicIterator |
protected class |
BasicList.ObjectComparator |
protected class |
BasicList.WrappedComparator |
modCount| Modifier | Constructor and Description |
|---|---|
(package private) |
BasicList() |
|
BasicList(BridgeList<? extends E> b) |
protected |
BasicList(Collection c) |
| Modifier and Type | Method and Description |
|---|---|
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() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRangeaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, spliterator, toArrayparallelStream, removeIf, streamBasicList()
protected BasicList(Collection c)
public BasicList(BridgeList<? extends E> b)
public Object getProperty(Object key)
BridgeListgetProperty in interface BridgeList<E extends Comparable<? super E>>key - the key of the propertypublic void setProperty(Object key, Object value)
BridgeListsetProperty 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>>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()
BridgeListsort in interface BridgeList<E extends Comparable<? super E>>public void sort(Comparator<? super E> comparator)
BridgeListsort in interface List<E extends Comparable<? super E>>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>>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}