T - extends <Item>public interface Sequence<T extends Item> extends Iterable<T>
| Modifier and Type | Method and Description |
|---|---|
T |
getItem(String key)
Retrieve an
Item from this sequence by its key. |
boolean |
hasItem(String key)
Determine whether this sequence contains a specific
key. |
Iterator<T> |
iterator()
Iterator for the
Items in this sequence. |
forEach, spliteratorIterator<T> iterator()
Items in this sequence. The order of the items
is implementation specific.iterator in interface Iterable<T extends Item>Iterable.iterator()T getItem(String key) throws AccessDeniedException, PathNotFoundException, ItemNotFoundException, RepositoryException
Item from this sequence by its key. If
the sequence does not contain the key this method throws an
ItemNotFoundException.key - The key of the item to retrieve. Must not be
null.key.ItemNotFoundExceptionRepositoryExceptionAccessDeniedExceptionPathNotFoundExceptionboolean hasItem(String key) throws RepositoryException
key.key - The key to look up.true if this sequence contains key.
False otherwise.RepositoryExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.