org.mmbase.bridge.util
Class BridgeCollections.EmptyBridgeList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.mmbase.bridge.util.BridgeCollections.EmptyBridgeList<E>
- All Implemented Interfaces:
- Serializable, Iterable<E>, Collection<E>, List<E>, BridgeList<E>
- Direct Known Subclasses:
- BridgeCollections.EmptyModuleList, BridgeCollections.EmptyNodeList, BridgeCollections.EmptyNodeManagerList, BridgeCollections.EmptyRelationList, BridgeCollections.EmptyRelationManagerList, BridgeCollections.EmptyStringList
- Enclosing class:
- BridgeCollections
abstract static class BridgeCollections.EmptyBridgeList<E>
- extends AbstractList<E>
- implements BridgeList<E>, Serializable
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, toArray, toArray |
BridgeCollections.EmptyBridgeList
BridgeCollections.EmptyBridgeList()
size
public final int size()
- Specified by:
size in interface Collection<E>- Specified by:
size in interface List<E>- Specified by:
size in class AbstractCollection<E>
get
public E get(int i)
- Specified by:
get in interface List<E>- Specified by:
get in class AbstractList<E>
contains
public boolean contains(Object obj)
- Specified by:
contains in interface Collection<E>- Specified by:
contains in interface List<E>- Overrides:
contains in class AbstractCollection<E>
getProperty
public Object getProperty(Object key)
- Description copied from interface:
BridgeList
- Retrieves a property previously set for this list.
Use this to store and retrieve meta data on how the list was created
(such as what sort-order was specified)
- Specified by:
getProperty in interface BridgeList<E>
- Parameters:
key - the key of the property
- Returns:
- the property value
getProperties
public Map<Object,Object> getProperties()
- Description copied from interface:
BridgeList
- Returns an (unmodifiable) view on all properties of this list (See
BridgeList.getProperty(java.lang.Object)).
- Specified by:
getProperties in interface BridgeList<E>
subList
public BridgeList<E> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<E>- Specified by:
subList in interface BridgeList<E>- Overrides:
subList in class AbstractList<E>
setProperty
public void setProperty(Object key,
Object value)
- Description copied from interface:
BridgeList
- Sets a property for this list.
Use this to store and retrieve meta data on how the list was created
(such as what sort-order was specified)
- Specified by:
setProperty in interface BridgeList<E>
- Parameters:
key - the key of the propertyvalue - the property value
sort
public void sort()
- Description copied from interface:
BridgeList
- Sorts this list according to a default sort order.
- Specified by:
sort in interface BridgeList<E>
sort
public void sort(Comparator<? super E> comparator)
- Description copied from interface:
BridgeList
- Sorts this list according to a specified sort order
- Specified by:
sort in interface BridgeList<E>
- Parameters:
comparator - the comparator defining the sort order
MMBase 2.0-SNAPSHOT - null