org.apache.jackrabbit.core.util
Class EmptyLinkedMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.apache.commons.collections.map.AbstractHashedMap
          extended by org.apache.commons.collections.map.AbstractLinkedMap
              extended by org.apache.commons.collections.map.LinkedMap
                  extended by org.apache.jackrabbit.core.util.EmptyLinkedMap
All Implemented Interfaces:
Serializable, Cloneable, Map, org.apache.commons.collections.IterableMap, org.apache.commons.collections.OrderedMap

public class EmptyLinkedMap
extends org.apache.commons.collections.map.LinkedMap

EmptyLinkedMap implements an empty unmodifiable LinkedMap.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.collections.map.AbstractLinkedMap
org.apache.commons.collections.map.AbstractLinkedMap.EntrySetIterator, org.apache.commons.collections.map.AbstractLinkedMap.KeySetIterator, org.apache.commons.collections.map.AbstractLinkedMap.LinkEntry, org.apache.commons.collections.map.AbstractLinkedMap.LinkIterator, org.apache.commons.collections.map.AbstractLinkedMap.LinkMapIterator, org.apache.commons.collections.map.AbstractLinkedMap.ValuesIterator
 
Nested classes/interfaces inherited from class org.apache.commons.collections.map.AbstractHashedMap
org.apache.commons.collections.map.AbstractHashedMap.EntrySet, org.apache.commons.collections.map.AbstractHashedMap.HashEntry, org.apache.commons.collections.map.AbstractHashedMap.HashIterator, org.apache.commons.collections.map.AbstractHashedMap.HashMapIterator, org.apache.commons.collections.map.AbstractHashedMap.KeySet, org.apache.commons.collections.map.AbstractHashedMap.Values
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static org.apache.commons.collections.map.LinkedMap INSTANCE
          The only instance of this class.
 
Fields inherited from class org.apache.commons.collections.map.AbstractLinkedMap
header
 
Fields inherited from class org.apache.commons.collections.map.AbstractHashedMap
data, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, DEFAULT_THRESHOLD, entrySet, GETKEY_INVALID, GETVALUE_INVALID, keySet, loadFactor, MAXIMUM_CAPACITY, modCount, NO_NEXT_ENTRY, NO_PREVIOUS_ENTRY, NULL, REMOVE_INVALID, SETVALUE_INVALID, size, threshold, values
 
Method Summary
 void clear()
           
 Object clone()
          Returns the single instance of this class.
 Set entrySet()
          Returns an unmodifiable empty set.
 Set keySet()
          Returns an unmodifiable empty set.
 Object put(Object o, Object o1)
           
 void putAll(Map map)
           
 Object remove(int i)
           
 Object remove(Object o)
           
 Collection values()
          Returns an unmodifiable empty collection.
 
Methods inherited from class org.apache.commons.collections.map.LinkedMap
asList, get, getValue, indexOf
 
Methods inherited from class org.apache.commons.collections.map.AbstractLinkedMap
addEntry, containsValue, createEntry, createEntrySetIterator, createKeySetIterator, createValuesIterator, entryAfter, entryBefore, firstKey, getEntry, init, lastKey, mapIterator, nextKey, orderedMapIterator, previousKey, removeEntry
 
Methods inherited from class org.apache.commons.collections.map.AbstractHashedMap
addMapping, calculateNewCapacity, calculateThreshold, checkCapacity, containsKey, convertKey, destroyEntry, doReadObject, doWriteObject, ensureCapacity, entryHashCode, entryKey, entryNext, entryValue, equals, get, getEntry, hash, hashCode, hashIndex, isEmpty, isEqualKey, isEqualValue, removeMapping, reuseEntry, size, toString, updateEntry
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, equals, get, hashCode, isEmpty, size
 

Field Detail

INSTANCE

public static final org.apache.commons.collections.map.LinkedMap INSTANCE
The only instance of this class.

Method Detail

remove

public Object remove(int i)
Overrides:
remove in class org.apache.commons.collections.map.LinkedMap
Throws:
UnsupportedOperationException - always.

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class org.apache.commons.collections.map.AbstractLinkedMap
Throws:
UnsupportedOperationException - always.

put

public Object put(Object o,
                  Object o1)
Specified by:
put in interface Map
Overrides:
put in class org.apache.commons.collections.map.AbstractHashedMap
Throws:
UnsupportedOperationException - always.

putAll

public void putAll(Map map)
Specified by:
putAll in interface Map
Overrides:
putAll in class org.apache.commons.collections.map.AbstractHashedMap
Throws:
UnsupportedOperationException - always.

remove

public Object remove(Object o)
Specified by:
remove in interface Map
Overrides:
remove in class org.apache.commons.collections.map.AbstractHashedMap
Throws:
UnsupportedOperationException - always.

entrySet

public Set entrySet()
Returns an unmodifiable empty set.

Specified by:
entrySet in interface Map
Overrides:
entrySet in class org.apache.commons.collections.map.AbstractHashedMap
Returns:
an unmodifiable empty set.

keySet

public Set keySet()
Returns an unmodifiable empty set.

Specified by:
keySet in interface Map
Overrides:
keySet in class org.apache.commons.collections.map.AbstractHashedMap
Returns:
an unmodifiable empty set.

values

public Collection values()
Returns an unmodifiable empty collection.

Specified by:
values in interface Map
Overrides:
values in class org.apache.commons.collections.map.AbstractHashedMap
Returns:
an unmodifiable empty collection.

clone

public Object clone()
Returns the single instance of this class.

Overrides:
clone in class org.apache.commons.collections.map.LinkedMap
Returns:
INSTANCE.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.