public class LoggingCollection extends Object implements Collection
Collection
which wraps another to provide logging
support.Constructor and Description |
---|
LoggingCollection(Collection delegate)
Creates a new
LoggingCollection which
logs to a category corresponding to this class at
the DEBUG level. |
LoggingCollection(Collection delegate,
org.apache.log4j.Logger logger)
Creates a new
LoggingCollection which uses
the specified log at the DEBUG level. |
LoggingCollection(Collection delegate,
org.apache.log4j.Logger logger,
org.apache.log4j.Level level)
Creates a new
LoggingCollection . |
Modifier and Type | Method and Description |
---|---|
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 org.apache.log4j.Level |
getLevel()
Provides access to internal state so it can be used
by extensions of this class.
|
protected org.apache.log4j.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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public LoggingCollection(Collection delegate)
LoggingCollection
which
logs to a category corresponding to this class at
the DEBUG level.public LoggingCollection(Collection delegate, org.apache.log4j.Logger logger)
LoggingCollection
which uses
the specified log at the DEBUG level.public LoggingCollection(Collection delegate, org.apache.log4j.Logger logger, org.apache.log4j.Level level)
LoggingCollection
.protected final Collection getDelegate()
protected final org.apache.log4j.Logger getLogger()
protected final org.apache.log4j.Level getLevel()
public int size()
size
in interface Collection
public boolean isEmpty()
isEmpty
in interface Collection
public void clear()
clear
in interface Collection
public boolean add(Object object)
add
in interface Collection
public boolean remove(Object object)
remove
in interface Collection
public boolean contains(Object object)
contains
in interface Collection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
public boolean addAll(Collection collection)
addAll
in interface Collection
public boolean containsAll(Collection collection)
containsAll
in interface Collection
public boolean removeAll(Collection collection)
removeAll
in interface Collection
public boolean retainAll(Collection collection)
retainAll
in interface Collection
public Object[] toArray()
toArray
in interface Collection
public Object[] toArray(Object[] array)
toArray
in interface Collection
See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.