E
- the type of the entries in this container.public interface Container<E extends Entry> extends Stream<E>
Modifier and Type | Method and Description |
---|---|
E |
entry(String name)
Returns the entry for the given
name or null if no entry
with this name exists in this container. |
Iterator<E> |
iterator()
Returns a new iterator for all entries in this container.
|
int |
size()
Returns the number of entries in this container.
|
forEach, spliterator
@CheckForNull E entry(String name)
name
or null
if no entry
with this name exists in this container.name
- the name of the entry.name
or null
if no entry
with this name exists in this container.Iterator<E> iterator()
First, 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.
int size()
Copyright © 2012–2017 Schlichtherle IT Services. All rights reserved.