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 null
public boolean hasNext()
ProxyTrustIterator
true
if the iteration has more elements, and
false
otherwise.hasNext
in interface ProxyTrustIterator
true
if the iteration has more elements, and
false
otherwisepublic Object next()
ProxyTrustIterator
NoSuchElementException
) without
terminating the iteration.next
in interface ProxyTrustIterator
NoSuchElementException
- if the iteration has no more elementspublic void setException(RemoteException e)
ProxyTrustIterator
RemoteException
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 ProxyTrustIterator
e
- RemoteException
thrown from a remote callNullPointerException
- if the argument is null
IllegalStateException
- 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
Copyright © GigaSpaces.