Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::logging::client::cache::LogIterator Class Reference

Collaboration diagram for com::cosylab::logging::client::cache::LogIterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LogIterator (ILogMap logs)
boolean hasNext ()
ILogEntry next ()
void remove ()

Private Attributes

ILogMap logs = null
Integer lastReadKey = null
Integer firstKey = null
Integer lastKey = null

Constructor & Destructor Documentation

com::cosylab::logging::client::cache::LogIterator::LogIterator ILogMap  logs  )  [inline]
 

Constructor

Parameters:
logs The map containing the logs to iteratoe over


Member Function Documentation

boolean com::cosylab::logging::client::cache::LogIterator::hasNext  )  [inline]
 

See also:
java.util.Iterator

ILogEntry com::cosylab::logging::client::cache::LogIterator::next  )  [inline]
 

See also:
java.util.Iterator

void com::cosylab::logging::client::cache::LogIterator::remove  )  [inline]
 

The remove implemented in this way doesn't work because it modifies the elements in the set and the keyIterator throws a ConcurrentModificationException

See also:
java.util.Iterator


Member Data Documentation

Integer com::cosylab::logging::client::cache::LogIterator::firstKey = null [private]
 

Integer com::cosylab::logging::client::cache::LogIterator::lastKey = null [private]
 

Integer com::cosylab::logging::client::cache::LogIterator::lastReadKey = null [private]
 

The key read with the last call to next() This value is needed to implement the remove()

ILogMap com::cosylab::logging::client::cache::LogIterator::logs = null [private]
 

The map of the logs


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:13:05 2009 for ACS Java API by doxygen 1.3.8