MCPcopy
hub / github.com/google/guava / limit

Method limit

guava/src/com/google/common/collect/FluentIterable.java:596–598  ·  view source on GitHub ↗

Creates a fluent iterable with the first {@code size} elements of this fluent iterable. If this fluent iterable does not contain that many elements, the returned fluent iterable will have the same behavior as this fluent iterable. The returned fluent iterable's iterator supports {@code remove()} if

(int maxSize)

Source from the content-addressed store, hash-verified

594 * @throws IllegalArgumentException if {@code size} is negative
595 */
596 public final FluentIterable<E> limit(int maxSize) {
597 return from(Iterables.limit(getDelegate(), maxSize));
598 }
599
600 /**
601 * Determines whether this fluent iterable is empty.

Callers

nothing calls this directly

Calls 3

fromMethod · 0.95
limitMethod · 0.95
getDelegateMethod · 0.95

Tested by

no test coverage detected