Skip to content

Commit

Permalink
Use long instead of int.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682774 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
netomi committed May 31, 2015
1 parent 121dba8 commit b3fd256
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -238,7 +238,7 @@ public FluentIterable<E> filter(final Predicate<E> predicate) {
* @return a new iterable, providing a bounded view of this iterable
* @throws IllegalArgumentException if maxSize is negative
*/
public FluentIterable<E> limit(final int maxSize) {
public FluentIterable<E> limit(final long maxSize) {
return of(IterableUtils.boundedIterable(iterable, maxSize));
}

Expand Down Expand Up @@ -271,7 +271,7 @@ public FluentIterable<E> reverse() {
* the first N elements
* @throws IllegalArgumentException if elementsToSkip is negative
*/
public FluentIterable<E> skip(int elementsToSkip) {
public FluentIterable<E> skip(final long elementsToSkip) {
return of(IterableUtils.skippingIterable(iterable, elementsToSkip));
}

Expand Down
Expand Up @@ -213,7 +213,7 @@ public Iterator<E> iterator() {
* @return a bounded view on the specified iterable
* @throws IllegalArgumentException if maxSize is negative
*/
public static <E> Iterable<E> boundedIterable(final Iterable<E> iterable, final int maxSize) {
public static <E> Iterable<E> boundedIterable(final Iterable<E> iterable, final long maxSize) {
if (maxSize < 0) {
throw new IllegalArgumentException("maxSize parameter must not be negative.");
}
Expand Down Expand Up @@ -311,7 +311,7 @@ public Iterator<E> iterator() {
* @return a view of the specified iterable, skipping the first N elements
* @throws IllegalArgumentException if elementsToSkip is negative
*/
public static <E> Iterable<E> skippingIterable(final Iterable<E> iterable, final int elementsToSkip) {
public static <E> Iterable<E> skippingIterable(final Iterable<E> iterable, final long elementsToSkip) {
if (elementsToSkip < 0) {
throw new IllegalArgumentException("elementsToSkip parameter must not be negative.");
}
Expand Down

0 comments on commit b3fd256

Please sign in to comment.