public class SingletonProxyTrustIterator extends Object implements ProxyTrustIterator
ProxyTrustIterator that produces a single object
 as the only element of the iteration.| Constructor and Description | 
|---|
SingletonProxyTrustIterator(Object obj)
Creates an instance with the specified object to use as the only
 element of the iteration. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
hasNext()
Returns  
true if the iteration has more elements, and
 false otherwise. | 
Object | 
next()
Returns the next element in the iteration. 
 | 
void | 
setException(RemoteException e)
Provides the iteration with a  
RemoteException thrown from
 a remote call made while attempting to obtain a
 TrustVerifier from the object
 returned by the most recent call to next. | 
public SingletonProxyTrustIterator(Object obj)
obj - the object to use as the element of the iterationNullPointerException - if the argument is nullpublic boolean hasNext()
ProxyTrustIteratortrue if the iteration has more elements, and
 false otherwise.hasNext in interface ProxyTrustIteratortrue if the iteration has more elements, and
 false otherwisepublic Object next()
ProxyTrustIteratorNoSuchElementException) without
 terminating the iteration.next in interface ProxyTrustIteratorNoSuchElementExceptionpublic void setException(RemoteException e)
ProxyTrustIteratorRemoteException thrown from
 a remote call made while attempting to obtain a
 TrustVerifier from the object
 returned by the most recent call to next. Setting an
 exception may influence which (if any) elements are subsequently
 produced by the iteration. (A RemoteException thrown
 directly by next should not be passed to this method.)setException in interface ProxyTrustIteratore - RemoteException thrown from a remote callNullPointerException - if the argument is nullIllegalStateException - if next has never been
 called, or if this method has already been called since the most
 recent call to next, or if hasNext has been
 called since the most recent call to next, or if the most
 recent call to next threw a RemoteException