org.mmbase.bridge.util
Class BridgeCollections.EmptyBridgeList<E>

Package class diagram package BridgeCollections.EmptyBridgeList
java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by 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


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BridgeCollections.EmptyBridgeList()
           
 
Method Summary
 boolean contains(Object obj)
           
 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.
 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)
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, 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, add, addAll, addAll, clear, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, toArray, toArray
 

Constructor Detail

BridgeCollections.EmptyBridgeList

BridgeCollections.EmptyBridgeList()
Method Detail

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 property
value - 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


MMBase2 Bridge 2.0-SNAPSHOT - 2013-05-29T22:05