|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.entry.DecoratingEntryContainer<E,C>
E - The type of the entries.@ThreadSafe public abstract class DecoratingEntryContainer<E extends Entry,C extends EntryContainer<E>>
An abstract decorator for an entry container.
| Field Summary | |
|---|---|
protected C |
delegate
The decorated entry container. |
| Constructor Summary | |
|---|---|
protected |
DecoratingEntryContainer(C container)
Constructs a new filter entry container. |
| Method Summary | |
|---|---|
E |
getEntry(String name)
Returns the entry for the given name or
null if no entry with this name exists in this container. |
int |
getSize()
Returns the number of entries in this container. |
Iterator<E> |
iterator()
Returns a new iterator over all entries in this container. |
String |
toString()
Returns a string representation of this object for debugging and logging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final C extends EntryContainer<E> delegate
| Constructor Detail |
|---|
protected DecoratingEntryContainer(C container)
container - the non-null container to be decorated.
NullPointerException - iff container is null.| Method Detail |
|---|
public int getSize()
EntryContainer
getSize in interface EntryContainer<E extends Entry>public Iterator<E> iterator()
EntryContainerFirst, the iteration must be consistent: Multiple iterators must iterate the same entries in the same order again unless the set of entries has changed.
Next, the iteration should also reflect the natural order of the entries in this container. For example, if this container represents an archive file, the iteration should reflect the natural order of the entries in the archive file.
iterator in interface EntryContainer<E extends Entry>iterator in interface Iterable<E extends Entry>null iterator over all entries in this
container.public E getEntry(String name)
EntryContainername or
null if no entry with this name exists in this container.
getEntry in interface EntryContainer<E extends Entry>name - an entry name.
name or
null if no entry with this name exists in this container.public String toString()
toString in class Object
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||