com.phoenixst.collections
public class LoggingCollection extends Object implements Collection
Collection which wraps another to provide logging
support.
Since: 1.0
Version: $Revision: 1.10 $
| Constructor Summary | |
|---|---|
| LoggingCollection(Collection delegate)
Creates a new LoggingCollection which
logs to a category corresponding to this class at
the DEBUG level. | |
| LoggingCollection(Collection delegate, Logger logger)
Creates a new LoggingCollection which uses
the specified log at the DEBUG level. | |
| LoggingCollection(Collection delegate, Logger logger, Level level)
Creates a new LoggingCollection. | |
| Method Summary | |
|---|---|
| boolean | add(Object object) |
| boolean | addAll(Collection collection) |
| void | clear() |
| boolean | contains(Object object) |
| boolean | containsAll(Collection collection) |
| protected Collection | getDelegate()
Provides access to internal state so it can be used
by extensions of this class. |
| protected Level | getLevel()
Provides access to internal state so it can be used
by extensions of this class. |
| protected Logger | getLogger()
Provides access to internal state so it can be used
by extensions of this class. |
| boolean | isEmpty() |
| Iterator | iterator() |
| boolean | remove(Object object) |
| boolean | removeAll(Collection collection) |
| boolean | retainAll(Collection collection) |
| int | size() |
| Object[] | toArray() |
| Object[] | toArray(Object[] array) |
| String | toString() |
LoggingCollection which
logs to a category corresponding to this class at
the DEBUG level.LoggingCollection which uses
the specified log at the DEBUG level.LoggingCollection.