ahc.collection.access
Interface AccessStrategy

All Known Implementing Classes:
GenericAccessStrategy, TransparentAccessStrategy

public interface AccessStrategy

Author:
Arno Haase

Method Summary
 boolean add(Store store, Iterator iter, java.lang.Object o)
          This methods serves to enable optimizations: a collection can obtain a single RawIterator from its store and then use the access strategy to add multiple elements at this position.
 boolean add(Store store, java.lang.Object o)
           
 Iterator after(Store store)
           
 boolean append(Store store, java.lang.Object o)
           
 Iterator before(Store store)
           
 Iterator begin(Store store)
           
 Iterator end(Store store)
           
 Iterator first(Store store, java.lang.Object o)
           
 java.lang.Object get(Store store, int index)
           
 Iterator iter(Store store, int index)
           
 Iterator last(Store store, java.lang.Object o)
           
 boolean prepend(Store store, java.lang.Object o)
           
 boolean remove(Store store, java.lang.Object o)
           
 

Method Detail

prepend

public boolean prepend(Store store,
                       java.lang.Object o)

append

public boolean append(Store store,
                      java.lang.Object o)

add

public boolean add(Store store,
                   java.lang.Object o)

remove

public boolean remove(Store store,
                      java.lang.Object o)

get

public java.lang.Object get(Store store,
                            int index)

add

public boolean add(Store store,
                   Iterator iter,
                   java.lang.Object o)
This methods serves to enable optimizations: a collection can obtain a single RawIterator from its store and then use the access strategy to add multiple elements at this position.

Parameters:
iter - must be an iterator on the underlying store

before

public Iterator before(Store store)

begin

public Iterator begin(Store store)

end

public Iterator end(Store store)

after

public Iterator after(Store store)

iter

public Iterator iter(Store store,
                     int index)

first

public Iterator first(Store store,
                      java.lang.Object o)

last

public Iterator last(Store store,
                     java.lang.Object o)