All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collections.LLMap

java.lang.Object
   |
   +----collections.UpdatableImpl
           |
           +----collections.UpdatableMapImpl
                   |
                   +----collections.LLMap

public class LLMap
extends UpdatableMapImpl
implements UpdatableMap
Linked lists of (key, element) pairs


Variable Index

 o list_
The head of the list.

Constructor Index

 o LLMap()
Make an empty list
 o LLMap(Predicate)
Make an empty list with the supplied element screener
 o LLMap(Predicate, LLPair, int)
Special version of constructor needed by clone()

Method Index

 o aKeyOf(Object)
Implements collections.Map.aKeyOf.
 o at(Object)
Implements collections.Map.at.
 o checkImplementation()
Implements collections.ImplementationCheckable.checkImplementation.
 o clear()
Implements collections.UpdatableCollection.clear.
 o clone()
Make an independent copy of the list.
 o elements()
Implements collections.Collection.elements.
 o exclude(Object)
Implements collections.UpdatableCollection.exclude.
 o includes(Object)
Implements collections.Collection.includes.
 o includesAt(Object, Object)
Implements collections.Map.includesAt Time complexity: O(n).
 o includesKey(Object)
Implements collections.Map.includesKey.
 o keys()
Implements collections.Map.keys.
 o occurrencesOf(Object)
Implements collections.Collection.occurrencesOf.
 o putAt(Object, Object)
Implements collections.UpdatableMap.putAt.
 o removeAt(Object)
Implements collections.UpdatableMap.removeAt.
 o removeOneOf(Object)
Implements collections.UpdatableCollection.removeOneOf.
 o replaceAllOf(Object, Object)
Implements collections.UpdatableCollection.replaceAllOf.
 o replaceElement(Object, Object, Object)
Implements collections.UpdatableMap.replaceElement.
 o replaceOneOf(Object, Object)
Implements collections.UpdatableCollection.replaceOneOf Time complexity: O(n).
 o take()
Implements collections.UpdatableCollection.take.

Variables

 o list_
 protected LLPair list_
The head of the list. Null if empty

Constructors

 o LLMap
 public LLMap()
Make an empty list

 o LLMap
 public LLMap(Predicate screener)
Make an empty list with the supplied element screener

 o LLMap
 protected LLMap(Predicate s,
                 LLPair l,
                 int c)
Special version of constructor needed by clone()

Methods

 o clone
 protected Object clone() throws CloneNotSupportedException
Make an independent copy of the list. Does not clone elements

Overrides:
clone in class Object
 o includes
 public synchronized boolean includes(Object element)
Implements collections.Collection.includes. Time complexity: O(n).

Overrides:
includes in class UpdatableImpl
See Also:
includes
 o occurrencesOf
 public synchronized int occurrencesOf(Object element)
Implements collections.Collection.occurrencesOf. Time complexity: O(n).

Overrides:
occurrencesOf in class UpdatableImpl
See Also:
occurrencesOf
 o elements
 public synchronized CollectionEnumeration elements()
Implements collections.Collection.elements. Time complexity: O(1).

Overrides:
elements in class UpdatableImpl
See Also:
elements
 o includesKey
 public synchronized boolean includesKey(Object key)
Implements collections.Map.includesKey. Time complexity: O(n).

Overrides:
includesKey in class UpdatableMapImpl
See Also:
includesKey
 o includesAt
 public synchronized boolean includesAt(Object key,
                                        Object element)
Implements collections.Map.includesAt Time complexity: O(n).

Overrides:
includesAt in class UpdatableMapImpl
See Also:
includesAt
 o keys
 public synchronized CollectionEnumeration keys()
Implements collections.Map.keys. Time complexity: O(1).

Overrides:
keys in class UpdatableMapImpl
See Also:
keys
 o at
 public synchronized Object at(Object key) throws NoSuchElementException
Implements collections.Map.at. Time complexity: O(n).

Overrides:
at in class UpdatableMapImpl
See Also:
at
 o aKeyOf
 public synchronized Object aKeyOf(Object element)
Implements collections.Map.aKeyOf. Time complexity: O(n).

Overrides:
aKeyOf in class UpdatableMapImpl
See Also:
aKeyOf
 o clear
 public synchronized void clear()
Implements collections.UpdatableCollection.clear. Time complexity: O(1).

Overrides:
clear in class UpdatableImpl
See Also:
clear
 o replaceOneOf
 public synchronized void replaceOneOf(Object oldElement,
                                       Object newElement) throws IllegalElementException
Implements collections.UpdatableCollection.replaceOneOf Time complexity: O(n).

Overrides:
replaceOneOf in class UpdatableImpl
See Also:
replaceOneOf
 o replaceAllOf
 public synchronized void replaceAllOf(Object oldElement,
                                       Object newElement) throws IllegalElementException
Implements collections.UpdatableCollection.replaceAllOf. Time complexity: O(n).

Overrides:
replaceAllOf in class UpdatableImpl
See Also:
replaceAllOf
 o exclude
 public synchronized void exclude(Object element)
Implements collections.UpdatableCollection.exclude. Time complexity: O(n).

Overrides:
exclude in class UpdatableImpl
See Also:
exclude
 o removeOneOf
 public synchronized void removeOneOf(Object element)
Implements collections.UpdatableCollection.removeOneOf. Time complexity: O(n).

Overrides:
removeOneOf in class UpdatableImpl
See Also:
removeOneOf
 o take
 public synchronized Object take() throws NoSuchElementException
Implements collections.UpdatableCollection.take. Time complexity: O(1). takes the first element on the list

Overrides:
take in class UpdatableImpl
See Also:
take
 o putAt
 public synchronized void putAt(Object key,
                                Object element)
Implements collections.UpdatableMap.putAt. Time complexity: O(n).

Overrides:
putAt in class UpdatableMapImpl
See Also:
putAt
 o removeAt
 public synchronized void removeAt(Object key)
Implements collections.UpdatableMap.removeAt. Time complexity: O(n).

Overrides:
removeAt in class UpdatableMapImpl
See Also:
removeAt
 o replaceElement
 public synchronized void replaceElement(Object key,
                                         Object oldElement,
                                         Object newElement) throws IllegalElementException
Implements collections.UpdatableMap.replaceElement. Time complexity: O(n).

Overrides:
replaceElement in class UpdatableMapImpl
See Also:
replaceElement
 o checkImplementation
 public synchronized void checkImplementation() throws ImplementationError
Implements collections.ImplementationCheckable.checkImplementation.

Overrides:
checkImplementation in class UpdatableImpl
See Also:
checkImplementation

All Packages  Class Hierarchy  This Package  Previous  Next  Index