com.aspose.note.infrastructure

Class TransformingEnumerator<TElementInternal,TElement>

  • java.lang.Object
    • com.aspose.note.infrastructure.TransformingEnumerator<TElementInternal,TElement>
  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerator<TElement>, com.aspose.ms.System.Collections.IEnumerator<TElement>, com.aspose.ms.System.IDisposable, Iterator<TElement>


    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.

    • Method Detail

      • next

        public TElement next()

        Gets the element in the collection at the current position of the enumerator.

        Specified by:
        next in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerator<TElement>
        Specified by:
        next in interface com.aspose.ms.System.Collections.IEnumerator<TElement>
        Specified by:
        next in interface Iterator<TElement>
        Returns:
        The element in the collection at the current position of the enumerator.
      • reset

        public void reset()

        Sets the enumerator to its initial position, which is before the first element in the collection.

        Specified by:
        reset in interface com.aspose.ms.System.Collections.IEnumerator<TElement>
        Throws:
        com.aspose.ms.System.InvalidOperationException - The collection was modified after the enumerator was created. <filterpriority>2</filterpriority>
      • hasNext

        public boolean hasNext()

        Advances the enumerator to the next element of the collection.

        Specified by:
        hasNext in interface com.aspose.ms.System.Collections.IEnumerator<TElement>
        Specified by:
        hasNext in interface Iterator<TElement>
        Returns:
        true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
        Throws:
        com.aspose.ms.System.InvalidOperationException - The collection was modified after the enumerator was created. <filterpriority>2</filterpriority>
      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        <filterpriority>2</filterpriority>
        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable