Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-744

Add org.apache.commons.collections4.EnumerationUtils.asIterable(Enumeration<T>)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None

      Description

      Add org.apache.commons.collections4.EnumerationUtils.asIterable(Enumeration<T>)

          /**
           * Gets an {@link Iterable} that wraps an {@link Enumeration}. The returned {@link Iterable} can be used for a
           * single iteration.
           *
           * @param <T> the element type
           * @param enumeration the enumeration to use, may not be null
           * @return a new, single use {@link Iterable}
           * @throws NullPointerException if iterator is null
           * @since 4.5
           */
          public static <T> Iterable<T> asIterable(final Enumeration<T> enumeration) {
              return new IteratorIterable<>(new EnumerationIterator<>(enumeration));
          }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ggregory Gary D. Gregory

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment