Top Fields Constructors Methods
org.graalvm.polyglot.proxy

pack-priv final Class DefaultProxyIterator

Located in compilation unit of org.graalvm.polyglot.proxy.ProxyIterator.

extends Object
implements ProxyIterator
Class Inheritance
All Implemented Interfaces
org.graalvm.polyglot.proxy.ProxyIterator, org.graalvm.polyglot.proxy.Proxy

Field Summary

Modifier and TypeField and Description
private final Iterator<?>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
getNext()

Implements org.graalvm.polyglot.proxy.ProxyIterator.getNext.

Returns the next element in the iteration.

public boolean
hasNext()

Implements org.graalvm.polyglot.proxy.ProxyIterator.hasNext.

Returns true if the iterator has more elements, else false.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iteratorback to summary
private final Iterator<?> iterator

Constructor Detail

DefaultProxyIteratorback to summary
pack-priv DefaultProxyIterator(Iterator<?> iterator)

Method Detail

getNextback to summary
public Object getNext()

Implements org.graalvm.polyglot.proxy.ProxyIterator.getNext.

Doc from org.graalvm.polyglot.proxy.ProxyIterator.getNext.

Returns the next element in the iteration. When the underlying data structure is modified the getNext() may throw the NoSuchElementException even when the hasNext() returned true.

Annotations
@Override
hasNextback to summary
public boolean hasNext()

Implements org.graalvm.polyglot.proxy.ProxyIterator.hasNext.

Doc from org.graalvm.polyglot.proxy.ProxyIterator.hasNext.

Returns true if the iterator has more elements, else false. Multiple calls to the hasNext() might lead to different results if the underlying data structure is modified.

Annotations
@Override