| Package | Description |
|---|---|
| org.kocakosm.pitaya.collection |
| Modifier and Type | Method and Description |
|---|---|
ImmutableList.Builder<E> |
ImmutableList.Builder.add(E... values)
Adds the given values to the
List being built. |
ImmutableList.Builder<E> |
ImmutableList.Builder.add(Iterable<? extends E> values)
Adds all the values contained in the given
Iterable
to the List being built. |
ImmutableList.Builder<E> |
ImmutableList.Builder.add(Iterator<? extends E> values)
Adds all the values contained in the given
Iterator
to the List being built. |
ImmutableList.Builder<E> |
ImmutableList.Builder.reverse()
Reverses the order of the elements currently in the
List being built. |
ImmutableList.Builder<E> |
ImmutableList.Builder.rotate(int n)
Rotates the elements currently in the
List being
built by the specified distance. |
ImmutableList.Builder<E> |
ImmutableList.Builder.shuffle()
Randomly permutes the elements currently in the
List
being built using a default source of randomness. |
ImmutableList.Builder<E> |
ImmutableList.Builder.shuffle(Random random)
Randomly permutes the elements currently in the
List
being built using the specified source of randomness. |
ImmutableList.Builder<E> |
ImmutableList.Builder.sort()
Sorts the elements currently in the
List being built
into ascending order, according to the natural ordering of
its elements (all elements in this builder must implement the
Comparable interface). |
ImmutableList.Builder<E> |
ImmutableList.Builder.sort(Comparator<? super E> c)
Sorts the elements currently in the
List being built
into ascending order, according to the order induced by the
given Comparator. |
Copyright © 2012–2015. All rights reserved.