Author: tn
Date: Sun May 31 19:08:47 2015
New Revision: 1682774
URL: http://svn.apache.org/r1682774
Log:
Use long instead of int.
Modified:
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/FluentIterable.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/IterableUtils.java
Modified:
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/FluentIterable.java
URL:
http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/FluentIterable.java?rev=1682774&r1=1682773&r2=1682774&view=diff
==============================================================================
---
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/FluentIterable.java
(original)
+++
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/FluentIterable.java
Sun May 31 19:08:47 2015
@@ -238,7 +238,7 @@ public class FluentIterable<E> implement
* @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));
}
@@ -271,7 +271,7 @@ public class FluentIterable<E> implement
* 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));
}
Modified:
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/IterableUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/IterableUtils.java?rev=1682774&r1=1682773&r2=1682774&view=diff
==============================================================================
---
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/IterableUtils.java
(original)
+++
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/IterableUtils.java
Sun May 31 19:08:47 2015
@@ -213,7 +213,7 @@ public class IterableUtils {
* @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.");
}
@@ -311,7 +311,7 @@ public class IterableUtils {
* @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.");
}