T
- extends <Item>public interface Sequence<T extends Item>
extends java.lang.Iterable<T>
Item
s sequentially through an
Iterator
or looking them up through a key
.Modifier and Type | Method and Description |
---|---|
T |
getItem(java.lang.String key)
Retrieve an
Item from this sequence by its key . |
boolean |
hasItem(java.lang.String key)
Determine whether this sequence contains a specific
key . |
java.util.Iterator<T> |
iterator()
Iterator for the
Item s in this sequence. |
java.util.Iterator<T> iterator()
Item
s in this sequence. The order of the items
is implementation specific.iterator
in interface java.lang.Iterable<T extends Item>
Iterable.iterator()
T getItem(java.lang.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
.ItemNotFoundException
RepositoryException
AccessDeniedException
PathNotFoundException
boolean hasItem(java.lang.String key) throws RepositoryException
key
.key
- The key
to look up.true
if this sequence contains key
.
False
otherwise.RepositoryException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"