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:
java.io.Serializable, java.lang.Cloneable, java.util.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
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.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()
           
 java.lang.Object clone()
          Returns the single instance of this class.
 java.util.Set entrySet()
          Returns an unmodifiable empty set.
 java.util.Set keySet()
          Returns an unmodifiable empty set.
 java.lang.Object put(java.lang.Object o, java.lang.Object o1)
           
 void putAll(java.util.Map map)
           
 java.lang.Object remove(int i)
           
 java.lang.Object remove(java.lang.Object o)
           
 java.util.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 java.lang.Object remove(int i)
Overrides:
remove in class org.apache.commons.collections.map.LinkedMap
Throws:
java.lang.UnsupportedOperationException - always.

clear

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

put

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

putAll

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

remove

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

entrySet

public java.util.Set entrySet()
Returns an unmodifiable empty set.

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

keySet

public java.util.Set keySet()
Returns an unmodifiable empty set.

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

values

public java.util.Collection values()
Returns an unmodifiable empty collection.

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

clone

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

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


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.