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

Inheritance diagram for com::cosylab::logging::client::cache::LogIterator:
Inheritance graph
[legend]
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]
ILogEntry com::cosylab::logging::client::cache::LogIterator::next (  )  [inline]
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

References com::cosylab::logging::client::cache::ILogMap::deleteLog(), lastReadKey, and logs.


Member Data Documentation

Referenced by next().

Referenced by hasNext().

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

Referenced by hasNext(), next(), and remove().

The map of the logs

Referenced by hasNext(), next(), and remove().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2