

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 |
| com::cosylab::logging::client::cache::LogIterator::LogIterator | ( | ILogMap | logs | ) | [inline] |
Constructor
| logs | The map containing the logs to iteratoe over |
| boolean com::cosylab::logging::client::cache::LogIterator::hasNext | ( | ) | [inline] |
References com::cosylab::logging::client::cache::ILogMap::getLastLog(), com::cosylab::logging::client::cache::ILogMap::getSize(), lastKey, lastReadKey, and logs.
| ILogEntry com::cosylab::logging::client::cache::LogIterator::next | ( | ) | [inline] |
References firstKey, com::cosylab::logging::client::cache::ILogMap::getFirstLog(), com::cosylab::logging::client::cache::ILogMap::getLastLog(), com::cosylab::logging::client::cache::ILogMap::getLog(), com::cosylab::logging::client::cache::ILogMap::keySet(), lastReadKey, and logs.
| 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
References com::cosylab::logging::client::cache::ILogMap::deleteLog(), lastReadKey, and logs.
Integer com::cosylab::logging::client::cache::LogIterator::firstKey = null [private] |
Referenced by next().
Integer com::cosylab::logging::client::cache::LogIterator::lastKey = null [private] |
Referenced by hasNext().
Integer com::cosylab::logging::client::cache::LogIterator::lastReadKey = null [private] |
ILogMap com::cosylab::logging::client::cache::LogIterator::logs = null [private] |
1.6.2