Home | History | Annotate | Download | only in collect

Lines Matching full:elements

72    * Returns the number of elements in {@code iterable}.
106 * @param removeFrom the iterable to (potentially) remove elements from
107 * @param elementsToRemove the elements to remove
108 * @return {@code true} if any elements are removed from {@code iterable}
124 * @param removeFrom the iterable to (potentially) remove elements from
125 * @param elementsToRetain the elements to retain
126 * @return {@code true} if any elements are removed from {@code iterable}
139 * @param removeFrom the iterable to (potentially) remove elements from
142 * @return {@code true} if any elements were removed from the iterable
185 * Determines whether two iterables contain equal elements in the same order.
187 * and {@code iterable2} contain the same number of elements and every element
209 * elements
220 * elements
228 * Copies an iterable's elements into an array.
231 * @param type the type of the elements
232 * @return a newly-allocated array into which all the elements of the iterable
246 * Adds all elements in {@code iterable} to {@code collection}.
262 * Returns the number of elements in the specified iterable that equal the
278 * Returns an iterable whose iterators cycle indefinitely over the elements of
289 * you will eventually remove all the elements.
308 * elements.
313 * as {@code Iterables.cycle(Lists.newArrayList(elements))}. The iterator's
315 * elements have been removed.
319 * you will eventually remove all the elements.
321 * <p>To cycle over the elements {@code n} times, use the following:
322 * {@code Iterables.concat(Collections.nCopies(n, Arrays.asList(elements)))}
324 public static <T> Iterable<T> cycle(T... elements) {
325 return cycle(Lists.newArrayList(elements));
330 * iterator that traverses the elements in {@code a}, followed by the elements
346 * an iterator that traverses the elements in {@code a}, followed by the
347 * elements in {@code b}, followed by the elements in {@code c}. The source
364 * an iterator that traverses the elements in {@code a}, followed by the
365 * elements in {@code b}, followed by the elements in {@code c}, followed by
366 * the elements in {@code d}. The source iterators are not polled until
385 * has an iterator that traverses the elements of each iterable in
399 * has an iterator that traverses the elements of each iterable in
442 * three and two elements, all in the original order.
453 * @return an iterable of unmodifiable lists containing the elements of {@code
473 * two inner lists of three elements each, all in the original order.
480 * @return an iterable of unmodifiable lists containing the elements of {@code
482 * trailing null elements)
497 * Returns the elements of {@code unfiltered} that satisfy a predicate. The
513 * returned iterable has elements whose class is {@code type} or a subclass of
518 * @param type the type of elements desired
519 * @return an unmodifiable iterable containing all elements of the original
535 * Returns {@code true} if one or more elements in {@code iterable} satisfy
567 * elements.
631 * @throws NoSuchElementException if the iterable has no elements
687 * @return an iterable with the same elements as the list, in reverse
710 * Determines if the given iterable contains no elements.
713 * one can only ask an iterator whether it has any elements <i>remaining</i>
716 * @return {@code true} if the iterable contains no elements