com.ibm.security.certclient.base
Class PkAttrs.Iter
- java.lang.Object
com.ibm.security.certclient.base.PkAttrs.Iter
All implemented interfaces:
Enclosing class:
An iterator for the attrs in a
PkAttrs
collection.
Iter.remove
is implemented. Also implements
nextAttr
to return a PkAttr
instead of an Object.
Method Summary
Modifier and Type | Method and Description |
---|---|
|
hasNext()
Returns
true if the iteration has more elements.
|
next()
Returns the next element in the interation.
|
|
nextAttr()
Same as
next() , but returns a PkAttr instead of an
Object .
|
|
|
remove()
Removes from the set of attributes the last attribute returned by
the iterator.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail
hasNext
- public boolean hasNext()
Returns:
true
if the iterator has more elements. next
- public Object next()
Returns the next element in the interation.
Throws:
NoSuchElementException
- iteration has no more elements. nextAttr
- public PkAttr nextAttr()
Same as
next()
, but returns a PkAttr
instead of an
Object
.
remove
- public void remove()
Removes from the set of attributes the last attribute returned by
the iterator. This method can be called only once per call to
next
. The behavior of an iterator is unspecified if the
underlying collection is modified while the iteration is in progress
in any way other than by calling this method.
Throws:
IllegalStateException
- if the next
method has not
yet been called.
true
if the iteration has more elements. (In other words, returnstrue
ifnext
would return an element rather than throwing an exception.)