java.io.Serializable, java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.List<java.lang.Integer>, java.util.RandomAccess, InternalIterable<java.lang.Integer>, LazyIterable<java.lang.Integer>, RichIterable<java.lang.Integer>public final class Interval extends AbstractLazyIterable<java.lang.Integer> implements java.util.List<java.lang.Integer>, java.io.Serializable, java.util.RandomAccess
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
add(int index,
   java.lang.Integer element) | 
|
boolean | 
add(java.lang.Integer integer) | 
|
boolean | 
addAll(int index,
      java.util.Collection<? extends java.lang.Integer> collection) | 
|
boolean | 
addAll(java.util.Collection<? extends java.lang.Integer> collection) | 
|
<R extends java.util.Collection<java.lang.Integer>> | 
addAllTo(R targetCollection) | 
|
Interval | 
by(int newStep) | 
 This instance  
by method allows Interval to act as a fluent builder for itself. | 
void | 
clear() | 
|
<T,R extends java.util.Collection<T>> | 
collect(Function<? super java.lang.Integer,? extends T> function,
       R target) | 
 Same as  
RichIterable.collect(Function), except that the results are gathered into the specified target
 collection. | 
boolean | 
contains(int value) | 
 Returns true if the Interval contains the specified int value. 
 | 
boolean | 
contains(java.lang.Object object) | 
 Returns true if the iterable has an element which responds true to element.equals(object). 
 | 
boolean | 
containsAll(int... values) | 
 Returns true if the Interval contains all of the specified int values. 
 | 
boolean | 
containsNone(int... values) | 
 Returns true if the Interval contains none of the specified int values. 
 | 
LazyIterable<java.lang.Integer> | 
distinct() | 
 Creates a deferred distinct iterable to get distinct elements from the current iterable. 
 | 
LazyIterable<java.lang.Integer> | 
drop(int count) | 
 Creates a deferred drop iterable for the current iterable using the specified count as the limit. 
 | 
void | 
each(Procedure<? super java.lang.Integer> procedure) | 
 The procedure is executed for each element in the iterable. 
 | 
boolean | 
equals(java.lang.Object otherList) | 
|
static Interval | 
evensFromTo(int from,
           int to) | 
 Returns an Interval representing the even values from the value from to the value to. 
 | 
java.lang.Number | 
factorial() | 
 Returns the Number result of calculating factorial for the range. 
 | 
void | 
forEach(IntProcedure procedure) | 
|
void | 
forEach(Procedure<? super java.lang.Integer> procedure,
       int startIndex,
       int endIndex) | 
|
void | 
forEach(Procedure<? super java.lang.Integer> procedure,
       java.util.concurrent.Executor executor) | 
 This method executes a void procedure against an executor, passing the current index of the
 interval. 
 | 
<P> void | 
forEachWith(IntObjectProcedure<? super P> procedure,
           P parameter) | 
|
<P> void | 
forEachWith(Procedure2<? super java.lang.Integer,? super P> procedure,
           P parameter) | 
 The procedure2 is evaluated for each element in the iterable with the specified parameter provided
 as the second argument. 
 | 
void | 
forEachWithIndex(IntIntProcedure procedure) | 
|
void | 
forEachWithIndex(ObjectIntProcedure<? super java.lang.Integer> objectIntProcedure) | 
 Iterates over the iterable passing each element and the current relative int index to the specified instance of
 ObjectIntProcedure. 
 | 
void | 
forEachWithIndex(ObjectIntProcedure<? super java.lang.Integer> objectIntProcedure,
                int startIndex,
                int endIndex) | 
|
static Interval | 
from(int newFrom) | 
 This static  
from method allows Interval to act as a fluent builder for itself. | 
static Interval | 
fromTo(int from,
      int to) | 
 Returns an Interval starting from the value from to the specified value to with a step value of 1. 
 | 
static Interval | 
fromToBy(int from,
        int to,
        int stepBy) | 
 Returns an Interval for the range of integers inclusively between from and to with the specified
 stepBy value. 
 | 
java.lang.Integer | 
get(int index) | 
|
java.lang.Integer | 
getFirst() | 
 Returns the first element of an iterable. 
 | 
java.lang.Integer | 
getLast() | 
 Returns the last element of an iterable. 
 | 
boolean | 
goForward() | 
|
int | 
hashCode() | 
|
int | 
indexOf(java.lang.Object object) | 
|
double | 
injectInto(double injectedValue,
          DoubleObjectToDoubleFunction<? super java.lang.Integer> function) | 
 Returns the final double result of evaluating function using each element of the iterable and the previous evaluation
 result as the parameters. 
 | 
int | 
injectInto(int injectedValue,
          IntObjectToIntFunction<? super java.lang.Integer> function) | 
 Returns the final int result of evaluating function using each element of the iterable and the previous evaluation
 result as the parameters. 
 | 
long | 
injectInto(long injectedValue,
          LongObjectToLongFunction<? super java.lang.Integer> function) | 
 Returns the final long result of evaluating function using each element of the iterable and the previous evaluation
 result as the parameters. 
 | 
<R> R | 
injectInto(R injectValue,
          Function2<? super R,? super java.lang.Integer,? extends R> function) | 
 Returns the final result of evaluating function using each element of the iterable and the previous evaluation
 result as the parameters. 
 | 
java.util.Iterator<java.lang.Integer> | 
iterator() | 
|
int | 
lastIndexOf(java.lang.Object object) | 
|
java.util.ListIterator<java.lang.Integer> | 
listIterator() | 
|
java.util.ListIterator<java.lang.Integer> | 
listIterator(int index) | 
|
static Interval | 
oddsFromTo(int from,
          int to) | 
 Returns an Interval representing the odd values from the value from to the value to. 
 | 
static Interval | 
oneTo(int count) | 
 Returns an Interval starting from 1 to the specified count value with a step value of 1. 
 | 
static Interval | 
oneToBy(int count,
       int step) | 
 Returns an Interval starting from 1 to the specified count value with a step value of step. 
 | 
java.lang.Number | 
product() | 
 Returns the Number result of calculating product for the range. 
 | 
<R extends java.util.Collection<java.lang.Integer>> | 
reject(Predicate<? super java.lang.Integer> predicate,
      R target) | 
 Same as the reject method with one parameter but uses the specified target collection for the results. 
 | 
java.lang.Integer | 
remove(int index) | 
|
boolean | 
remove(java.lang.Object o) | 
|
boolean | 
removeAll(java.util.Collection<?> collection) | 
|
boolean | 
retainAll(java.util.Collection<?> collection) | 
|
void | 
reverseForEach(Procedure<? super java.lang.Integer> procedure) | 
|
<R> R | 
reverseInjectInto(R injectValue,
                 Function2<R,java.lang.Integer,R> function) | 
|
Interval | 
reverseThis() | 
 Returns a new interval with the from and to values reversed and the step value negated. 
 | 
void | 
run(java.lang.Runnable runnable) | 
 This method runs a runnable a specified number of times against on the current thread. 
 | 
void | 
run(java.lang.Runnable runnable,
   java.util.concurrent.Executor executor) | 
 This method runs a runnable a specified number of times against an executor. 
 | 
<R extends java.util.Collection<java.lang.Integer>> | 
select(Predicate<? super java.lang.Integer> predicate,
      R target) | 
 Same as the select method with one parameter but uses the specified target collection for the results. 
 | 
java.lang.Integer | 
set(int index,
   java.lang.Integer element) | 
|
int | 
size() | 
 Calculates and returns the size of the interval. 
 | 
Interval | 
subList(int fromIndex,
       int toIndex) | 
|
LazyIterable<java.lang.Integer> | 
take(int count) | 
 Creates a deferred take iterable for the current iterable using the specified count as the limit. 
 | 
Interval | 
to(int newTo) | 
 This instance  
to method allows Interval to act as a fluent builder for itself. | 
java.lang.Integer[] | 
toArray() | 
 Converts this iterable to an array. 
 | 
static java.lang.Integer[] | 
toArray(int from,
       int to) | 
 Returns an Integer array with the values inclusively between from and to. 
 | 
MutableBag<java.lang.Integer> | 
toBag() | 
 Converts the collection to the default MutableBag implementation. 
 | 
int[] | 
toIntArray() | 
 Converts the interval to an Integer array 
 | 
MutableList<java.lang.Integer> | 
toList() | 
 Converts the collection to a MutableList implementation. 
 | 
static java.lang.Integer[] | 
toReverseArray(int from,
              int to) | 
|
static MutableList<java.lang.Integer> | 
toReverseList(int from,
             int to) | 
 Returns a MutableList representing the Integer values from the value from to the value to in reverse. 
 | 
MutableSet<java.lang.Integer> | 
toSet() | 
 Converts the collection to a MutableSet implementation. 
 | 
static MutableSet<java.lang.Integer> | 
toSet(int from,
     int to) | 
 Returns an Set representing the Integer values from the value from to the value to. 
 | 
java.lang.String | 
toString() | 
 Returns a string with the elements of the iterable separated by commas with spaces and
 enclosed in square brackets. 
 | 
static Interval | 
zero() | 
 Returns an Interval starting at zero. 
 | 
static Interval | 
zeroTo(int count) | 
 Returns an Interval starting from 0 to the specified count value with a step value of 1. 
 | 
static Interval | 
zeroToBy(int count,
        int step) | 
 Returns an Interval starting from 0 to the specified count value with a step value of step. 
 | 
aggregateBy, aggregateInPlaceBy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, concatenate, dropWhile, flatCollect, getOnly, groupBy, groupByEach, groupByUniqueKey, into, isEmpty, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, takeWhile, tap, toArray, toStack, zip, zipWithIndexallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countBy, countByWith, countWith, detect, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, rejectWith, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexforEach, forEachcontainsAll, isEmpty, of, of, of, of, of, of, of, of, of, of, of, of, replaceAll, sort, spliterator, toArrayallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countBy, countBy, countByWith, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, groupBy, groupByEach, groupByUniqueKey, injectInto, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, rejectWith, selectWith, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexpublic static Interval from(int newFrom)
from method allows Interval to act as a fluent builder for itself.
 It works in conjunction with the instance methods to(int) and by(int).
 Usage Example:
Interval interval1 = Interval.from(1).to(5); // results in: 1, 2, 3, 4, 5. Interval interval2 = Interval.from(1).to(10).by(2); // results in: 1, 3, 5, 7, 9.
public Interval to(int newTo)
to method allows Interval to act as a fluent builder for itself.
 It works in conjunction with the static method from(int) and instance method by(int).
 Usage Example:
Interval interval1 = Interval.from(1).to(5); // results in: 1, 2, 3, 4, 5. Interval interval2 = Interval.from(1).to(10).by(2); // results in: 1, 3, 5, 7, 9.
public Interval by(int newStep)
by method allows Interval to act as a fluent builder for itself.
 It works in conjunction with the static method from(int) and instance method to(int).
 Usage Example:
Interval interval1 = Interval.from(1).to(5); // results in: 1, 2, 3, 4, 5. Interval interval2 = Interval.from(1).to(10).by(2); // results in: 1, 3, 5, 7, 9.
public static Interval zero()
Usage Example:
Interval interval1 = Interval.zero().to(5); // results in: 0, 1, 2, 3, 4, 5. Interval interval2 = Interval.zero().to(10).by(2); // results in: 0, 2, 4, 6, 8, 10.
public static Interval oneTo(int count)
public static Interval oneToBy(int count, int step)
public static Interval zeroTo(int count)
public static Interval zeroToBy(int count, int step)
public static Interval fromTo(int from, int to)
public static Interval evensFromTo(int from, int to)
public static Interval oddsFromTo(int from, int to)
public static MutableSet<java.lang.Integer> toSet(int from, int to)
public static MutableList<java.lang.Integer> toReverseList(int from, int to)
public static java.lang.Integer[] toArray(int from,
                                          int to)
public static java.lang.Integer[] toReverseArray(int from,
                                                 int to)
public static Interval fromToBy(int from, int to, int stepBy)
public boolean containsAll(int... values)
public boolean containsNone(int... values)
public boolean contains(java.lang.Object object)
RichIterablecontains in interface java.util.Collection<java.lang.Integer>contains in interface java.util.List<java.lang.Integer>contains in interface RichIterable<java.lang.Integer>contains in class AbstractRichIterable<java.lang.Integer>public boolean contains(int value)
public java.lang.Number factorial()
public java.lang.Number product()
public void forEachWithIndex(IntIntProcedure procedure)
public void forEachWithIndex(ObjectIntProcedure<? super java.lang.Integer> objectIntProcedure)
InternalIterableExample using a Java 8 lambda:
 people.forEachWithIndex((Person person, int index) -> LOGGER.info("Index: " + index + " person: " + person.getName()));
 
 Example using an anonymous inner class:
 people.forEachWithIndex(new ObjectIntProcedure<Person>()
 {
     public void value(Person person, int index)
     {
         LOGGER.info("Index: " + index + " person: " + person.getName());
     }
 });
 forEachWithIndex in interface InternalIterable<java.lang.Integer>forEachWithIndex in class AbstractRichIterable<java.lang.Integer>public <P> void forEachWith(IntObjectProcedure<? super P> procedure, P parameter)
public boolean goForward()
public <P> void forEachWith(Procedure2<? super java.lang.Integer,? super P> procedure, P parameter)
InternalIterableExample using a Java 8 lambda:
 people.forEachWith((Person person, Person other) ->
     {
         if (person.isRelatedTo(other))
         {
              LOGGER.info(person.getName());
         }
     }, fred);
 
 Example using an anonymous inner class:
 people.forEachWith(new Procedure2<Person, Person>()
 {
     public void value(Person person, Person other)
     {
         if (person.isRelatedTo(other))
         {
              LOGGER.info(person.getName());
         }
     }
 }, fred);
 forEachWith in interface InternalIterable<java.lang.Integer>forEachWith in class AbstractRichIterable<java.lang.Integer>public void forEach(IntProcedure procedure)
public void each(Procedure<? super java.lang.Integer> procedure)
RichIterableExample using a Java 8 lambda expression:
people.each(person -> LOGGER.info(person.getName()));
Example using an anonymous inner class:
 people.each(new Procedure<Person>()
 {
     public void value(Person person)
     {
         LOGGER.info(person.getName());
     }
 });
 
 This method is a variant of InternalIterable.forEach(Procedure)
 that has a signature conflict with Iterable.forEach(java.util.function.Consumer).each in interface RichIterable<java.lang.Integer>InternalIterable.forEach(Procedure), 
Iterable.forEach(java.util.function.Consumer)public void forEach(Procedure<? super java.lang.Integer> procedure, java.util.concurrent.Executor executor)
public void run(java.lang.Runnable runnable)
public void run(java.lang.Runnable runnable,
                java.util.concurrent.Executor executor)
public <R> R injectInto(R injectValue,
                        Function2<? super R,? super java.lang.Integer,? extends R> function)
RichIterableinjectInto in interface RichIterable<java.lang.Integer>injectInto in class AbstractRichIterable<java.lang.Integer>public int injectInto(int injectedValue,
                      IntObjectToIntFunction<? super java.lang.Integer> function)
RichIterableinjectInto in interface RichIterable<java.lang.Integer>injectInto in class AbstractRichIterable<java.lang.Integer>public long injectInto(long injectedValue,
                       LongObjectToLongFunction<? super java.lang.Integer> function)
RichIterableinjectInto in interface RichIterable<java.lang.Integer>injectInto in class AbstractRichIterable<java.lang.Integer>public double injectInto(double injectedValue,
                         DoubleObjectToDoubleFunction<? super java.lang.Integer> function)
RichIterableinjectInto in interface RichIterable<java.lang.Integer>injectInto in class AbstractRichIterable<java.lang.Integer>public void reverseForEach(Procedure<? super java.lang.Integer> procedure)
public <R> R reverseInjectInto(R injectValue,
                               Function2<R,java.lang.Integer,R> function)
public <R extends java.util.Collection<java.lang.Integer>> R addAllTo(R targetCollection)
public <T,R extends java.util.Collection<T>> R collect(Function<? super java.lang.Integer,? extends T> function, R target)
RichIterableRichIterable.collect(Function), except that the results are gathered into the specified target
 collection.
 Example using a Java 8 lambda expression:
 MutableList<String> names =
     people.collect(person -> person.getFirstName() + " " + person.getLastName(), Lists.mutable.empty());
 
 Example using an anonymous inner class:
 MutableList<String> names =
     people.collect(new Function<Person, String>()
     {
         public String valueOf(Person person)
         {
             return person.getFirstName() + " " + person.getLastName();
         }
     }, Lists.mutable.empty());
 collect in interface RichIterable<java.lang.Integer>collect in class AbstractRichIterable<java.lang.Integer>function - a Function to use as the collect transformation functiontarget - the Collection to append to for all elements in this RichIterable that meet select criteria functiontarget, which contains appended elements as a result of the collect transformationRichIterable.collect(Function)public <R extends java.util.Collection<java.lang.Integer>> R select(Predicate<? super java.lang.Integer> predicate, R target)
RichIterableExample using a Java 8 lambda expression:
 MutableList<Person> selected =
     people.select(person -> person.person.getLastName().equals("Smith"), Lists.mutable.empty());
 
 Example using an anonymous inner class:
 MutableList<Person> selected =
     people.select(new Predicate<Person>()
     {
         public boolean accept(Person person)
         {
             return person.person.getLastName().equals("Smith");
         }
     }, Lists.mutable.empty());
 
 select in interface RichIterable<java.lang.Integer>select in class AbstractRichIterable<java.lang.Integer>predicate - a Predicate to use as the select criteriatarget - the Collection to append to for all elements in this RichIterable that meet select criteria predicatetarget, which contains appended elements as a result of the select criteriaRichIterable.select(Predicate)public <R extends java.util.Collection<java.lang.Integer>> R reject(Predicate<? super java.lang.Integer> predicate, R target)
RichIterableExample using a Java 8 lambda expression:
 MutableList<Person> rejected =
     people.reject(person -> person.person.getLastName().equals("Smith"), Lists.mutable.empty());
 
 Example using an anonymous inner class:
 MutableList<Person> rejected =
     people.reject(new Predicate<Person>()
     {
         public boolean accept(Person person)
         {
             return person.person.getLastName().equals("Smith");
         }
     }, Lists.mutable.empty());
 reject in interface RichIterable<java.lang.Integer>reject in class AbstractRichIterable<java.lang.Integer>predicate - a Predicate to use as the reject criteriatarget - the Collection to append to for all elements in this RichIterable that cause Predicate#accept(Object) method to evaluate to falsetarget, which contains appended elements as a result of the reject criteriapublic boolean equals(java.lang.Object otherList)
equals in interface java.util.Collection<java.lang.Integer>equals in interface java.util.List<java.lang.Integer>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Integer>hashCode in interface java.util.List<java.lang.Integer>hashCode in class java.lang.Objectpublic Interval reverseThis()
public int size()
size in interface java.util.Collection<java.lang.Integer>size in interface java.util.List<java.lang.Integer>size in interface RichIterable<java.lang.Integer>size in class AbstractLazyIterable<java.lang.Integer>public java.lang.Integer[] toArray()
RichIterabletoArray in interface java.util.Collection<java.lang.Integer>toArray in interface java.util.List<java.lang.Integer>toArray in interface RichIterable<java.lang.Integer>toArray in class AbstractRichIterable<java.lang.Integer>Collection.toArray()public int[] toIntArray()
public java.lang.String toString()
AbstractRichIterable
 Assert.assertEquals("[]", Lists.mutable.empty().toString());
 Assert.assertEquals("[1]", Lists.mutable.with(1).toString());
 Assert.assertEquals("[1, 2, 3]", Lists.mutable.with(1, 2, 3).toString());
 toString in interface RichIterable<java.lang.Integer>toString in class AbstractRichIterable<java.lang.Integer>AbstractCollection.toString()public java.util.Iterator<java.lang.Integer> iterator()
iterator in interface java.util.Collection<java.lang.Integer>iterator in interface java.lang.Iterable<java.lang.Integer>iterator in interface java.util.List<java.lang.Integer>public java.lang.Integer getFirst()
RichIterableThe order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the first element could be any element from the Set.
getFirst in interface LazyIterable<java.lang.Integer>getFirst in interface RichIterable<java.lang.Integer>getFirst in class AbstractLazyIterable<java.lang.Integer>public java.lang.Integer getLast()
RichIterableThe order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the last element could be any element from the Set.
getLast in interface RichIterable<java.lang.Integer>getLast in class AbstractLazyIterable<java.lang.Integer>public void forEach(Procedure<? super java.lang.Integer> procedure, int startIndex, int endIndex)
public void forEachWithIndex(ObjectIntProcedure<? super java.lang.Integer> objectIntProcedure, int startIndex, int endIndex)
public java.lang.Integer get(int index)
get in interface java.util.List<java.lang.Integer>public int indexOf(java.lang.Object object)
indexOf in interface java.util.List<java.lang.Integer>public int lastIndexOf(java.lang.Object object)
lastIndexOf in interface java.util.List<java.lang.Integer>public MutableList<java.lang.Integer> toList()
RichIterabletoList in interface RichIterable<java.lang.Integer>toList in class AbstractRichIterable<java.lang.Integer>public MutableSet<java.lang.Integer> toSet()
RichIterabletoSet in interface RichIterable<java.lang.Integer>toSet in class AbstractRichIterable<java.lang.Integer>public MutableBag<java.lang.Integer> toBag()
RichIterabletoBag in interface RichIterable<java.lang.Integer>toBag in class AbstractRichIterable<java.lang.Integer>public boolean add(java.lang.Integer integer)
add in interface java.util.Collection<java.lang.Integer>add in interface java.util.List<java.lang.Integer>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<java.lang.Integer>remove in interface java.util.List<java.lang.Integer>public boolean addAll(java.util.Collection<? extends java.lang.Integer> collection)
addAll in interface java.util.Collection<java.lang.Integer>addAll in interface java.util.List<java.lang.Integer>public boolean addAll(int index,
                      java.util.Collection<? extends java.lang.Integer> collection)
addAll in interface java.util.List<java.lang.Integer>public boolean removeAll(java.util.Collection<?> collection)
removeAll in interface java.util.Collection<java.lang.Integer>removeAll in interface java.util.List<java.lang.Integer>public boolean retainAll(java.util.Collection<?> collection)
retainAll in interface java.util.Collection<java.lang.Integer>retainAll in interface java.util.List<java.lang.Integer>public void clear()
clear in interface java.util.Collection<java.lang.Integer>clear in interface java.util.List<java.lang.Integer>public java.lang.Integer set(int index,
                             java.lang.Integer element)
set in interface java.util.List<java.lang.Integer>public void add(int index,
                java.lang.Integer element)
add in interface java.util.List<java.lang.Integer>public java.lang.Integer remove(int index)
remove in interface java.util.List<java.lang.Integer>public java.util.ListIterator<java.lang.Integer> listIterator()
listIterator in interface java.util.List<java.lang.Integer>public java.util.ListIterator<java.lang.Integer> listIterator(int index)
listIterator in interface java.util.List<java.lang.Integer>public Interval subList(int fromIndex, int toIndex)
subList in interface java.util.List<java.lang.Integer>public LazyIterable<java.lang.Integer> take(int count)
LazyIterabletake in interface LazyIterable<java.lang.Integer>take in class AbstractLazyIterable<java.lang.Integer>public LazyIterable<java.lang.Integer> drop(int count)
LazyIterabledrop in interface LazyIterable<java.lang.Integer>drop in class AbstractLazyIterable<java.lang.Integer>public LazyIterable<java.lang.Integer> distinct()
LazyIterabledistinct in interface LazyIterable<java.lang.Integer>distinct in class AbstractLazyIterable<java.lang.Integer>Copyright © 2004–2017. All rights reserved.