public abstract class TransformingEnumerator<TElementInternal,TElement> extends Object implements com.aspose.ms.System.Collections.Generic.IGenericEnumerator<TElement>
Represents an iterator through the collection as if it is of another type.
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
boolean |
hasNext()
Advances the enumerator to the next element of the collection.
|
TElement |
next()
Gets the element in the collection at the current position of the enumerator.
|
void |
remove() |
void |
reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public TElement next()
Gets the element in the collection at the current position of the enumerator.
next
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerator<TElement>
next
in interface com.aspose.ms.System.Collections.IEnumerator<TElement>
next
in interface Iterator<TElement>
public void reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
reset
in interface com.aspose.ms.System.Collections.IEnumerator<TElement>
com.aspose.ms.System.InvalidOperationException
- The collection was modified after the enumerator was created.
<filterpriority>2</filterpriority>
public boolean hasNext()
Advances the enumerator to the next element of the collection.
hasNext
in interface com.aspose.ms.System.Collections.IEnumerator<TElement>
hasNext
in interface Iterator<TElement>
com.aspose.ms.System.InvalidOperationException
- The collection was modified after the enumerator was created.
<filterpriority>2</filterpriority>
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
<filterpriority>2</filterpriority>
dispose
in interface com.aspose.ms.System.IDisposable
Copyright (c) 2016 Aspose. All Rights Reserved.