|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListF<E>
Extended list.
CollectionF
Method Summary | ||
---|---|---|
ListF<E> |
drop(int count)
Drop first count elements |
|
ListF<E> |
filter(Function1B<? super E> p)
Return collection with only elements that match predicate. |
|
Tuple2<ListF<E>,ListF<E>> |
filter2(Function1B<? super E> p)
Return pair of lists, first list contains elements matching p
and second lists contains elements matching !p . |
|
E |
first()
First element |
|
Option<E> |
firstO()
Return Option.some(first()) or Option.none() . |
|
IteratorF<E> |
iterator()
Iterate list |
|
E |
last()
Last element |
|
Option<E> |
lastO()
Return Option.some(last()) or Option.none() . |
|
int |
length()
Alias for Collection.size() |
|
ListF<E> |
plus(Collection<? extends E> elements)
Collection with all elements of this collection and that collection. |
|
ListF<E> |
plus(E... additions)
Varargs variant of CollectionF.plus(Collection) . |
|
ListF<E> |
plus(Iterator<? extends E> iterator)
Collection with all elements of this collection and that collection. |
|
ListF<E> |
plus(List<? extends E> addition)
Concatenate two lists |
|
ListF<E> |
plus1(E e)
This collection plus one element. |
|
ListF<E> |
reverse()
List with elements in reverse order |
|
IteratorF<E> |
reverseIterator()
|
|
ListF<E> |
subList(int fromIndex,
int toIndex)
Sub list from index to index |
|
ListF<E> |
take(int count)
Task first count elements |
|
|
uncheckedCast()
Return this with another type parameter and no type checks. |
|
ListF<E> |
unmodifiable()
Unmodifiable view or copy of this collection |
|
|
zip(ListF<B> that)
List of pairs of elements with the same index in two lists |
|
ListF<Tuple2<E,Integer>> |
zipWithIndex()
Zip with index |
Methods inherited from interface ru.yandex.bolts.collection.CollectionF |
---|
addAll, addF, addOp, containsF, containsP, flatMap, flatMapO, groupBy, map, max, max, min, min, single, singleO, sort, sort, sortBy, sortByDesc, toArray, toBooleanArray, toByteArray, toCharArray, toDoubleArray, toFloatArray, toIntArray, toList, toLongArray, toMap, toMapMappingToKey, toMapMappingToValue, toShortArray, unique |
Methods inherited from interface ru.yandex.bolts.collection.IterableF |
---|
exists, find, foldLeft, foldRight, forAll, forEach, mkString, mkString, reduceLeft, reduceRight |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray |
Method Detail |
---|
IteratorF<E> iterator()
iterator
in interface Collection<E>
iterator
in interface CollectionF<E>
iterator
in interface Iterable<E>
iterator
in interface IterableF<E>
iterator
in interface List<E>
IteratorF<E> reverseIterator()
ListF<E> filter(Function1B<? super E> p)
CollectionF
filter
in interface CollectionF<E>
Tuple2<ListF<E>,ListF<E>> filter2(Function1B<? super E> p)
p
and second lists contains elements matching !p
.
filter2
in interface CollectionF<E>
ListF<E> subList(int fromIndex, int toIndex)
subList
in interface List<E>
ListF<Tuple2<E,Integer>> zipWithIndex()
ListF<E> plus(List<? extends E> addition)
ListF<E> plus(Collection<? extends E> elements)
CollectionF
plus
in interface CollectionF<E>
ListF<E> plus(Iterator<? extends E> iterator)
CollectionF
plus
in interface CollectionF<E>
ListF<E> plus(E... additions)
CollectionF
CollectionF.plus(Collection)
.
plus
in interface CollectionF<E>
ListF<E> plus1(E e)
CollectionF
plus1
in interface CollectionF<E>
E first() throws IndexOutOfBoundsException
IndexOutOfBoundsException
E last() throws IndexOutOfBoundsException
IndexOutOfBoundsException
Option<E> firstO()
Option.some(first())
or Option.none()
.
Option<E> lastO()
Option.some(last())
or Option.none()
.
ListF<E> take(int count)
count
elements
ListF<E> drop(int count)
ListF<E> unmodifiable()
unmodifiable
in interface CollectionF<E>
Collections.unmodifiableCollection(Collection)
int length()
Collection.size()
ListF<E> reverse()
<F> ListF<F> uncheckedCast()
CollectionF
this
with another type parameter and no type checks.
uncheckedCast
in interface CollectionF<E>
uncheckedCast
in interface IterableF<E>
<B> ListMap<E,B> zip(ListF<B> that)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |