Tabnine Logo
IterableUtils.loopingIterable
Code IndexAdd Tabnine to your IDE (free)

How to use
loopingIterable
method
in
org.apache.commons.collections4.IterableUtils

Best Java code snippets using org.apache.commons.collections4.IterableUtils.loopingIterable (Showing top 1 results out of 315)

origin: org.apache.commons/commons-collections4

/**
 * Returns a new FluentIterable whose iterator will loop infinitely
 * over the elements from this iterable.
 *
 * @return a new iterable, providing a looping view of this iterable
 */
public FluentIterable<E> loop() {
  return of(IterableUtils.loopingIterable(iterable));
}
org.apache.commons.collections4IterableUtilsloopingIterable

Javadoc

Returns a view of the given iterable which will cycle infinitely over its elements.

The returned iterable's iterator supports remove() if iterable.iterator() does. After remove() is called, subsequent cycles omit the removed element, which is no longer in iterable. The iterator's hasNext() method returns true until iterableis empty.

Popular methods of IterableUtils

  • find
    Finds the first element in the given iterable which matches the given predicate. A null or empty it
  • get
    Returns the index-th value in the iterable's Iterator, throwing IndexOutOfBoundsException if there i
  • forEach
    Applies the closure to each element of the provided iterable.
  • isEmpty
    Answers true if the provided iterable is empty. A null iterable returns true.
  • matchesAny
    Answers true if a predicate is true for any element of the iterable. A null or empty iterable return
  • countMatches
    Counts the number of elements in the input iterable that match the predicate. A null iterable matche
  • emptyIterable
    Gets an empty iterable. This iterable does not contain any elements.
  • forEachButLast
    Executes the given closure on each but the last element in the iterable. If the input iterable is nu
  • indexOf
    Returns the index of the first element in the specified iterable that matches the given predicate. A
  • toList
    Gets a new list with the contents of the provided iterable.
  • boundedIterable
    Returns a view of the given iterable that contains at most the given number of elements. The returne
  • chainedIterable
    Combines the provided iterables into a single iterable. The returned iterable has an iterator that t
  • boundedIterable,
  • chainedIterable,
  • checkNotNull,
  • collatedIterable,
  • contains,
  • emptyIfNull,
  • emptyIteratorIfNull,
  • filteredIterable,
  • frequency

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now