T
- the type of elements held in this collectionpublic interface FluentSequenceX<T> extends FluentCollectionX<T>
Fn1.µ, Fn1.FunctionalOperations<T1,R>
Modifier and Type | Method and Description |
---|---|
FluentSequenceX<T> |
filter(java.util.function.Predicate<? super T> pred)
Keep only elements for which the supplied predicates hold
e.g.
|
<R> FluentSequenceX<R> |
flatMap(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends R>> mapper)
Perform a flatMap operation on this collection.
|
<R> FluentSequenceX<R> |
map(java.util.function.Function<? super T,? extends R> mapper)
Transform this functor using the supplied transformation function
|
FluentSequenceX<T> |
minus(int i)
Remove the element at the supplied index
|
FluentSequenceX<T> |
minus(java.lang.Object e)
Remove the specified element from this collection
|
FluentSequenceX<T> |
minusAll(java.util.Collection<?> list)
Remove all the specified elements from this collection
|
FluentSequenceX<T> |
plus(int i,
T e)
Add the supplied element at the supplied index
|
FluentSequenceX<T> |
plus(T e)
Add an element to this Collection
|
FluentSequenceX<T> |
plusAll(java.util.Collection<? extends T> list)
Add all supplied elements to this Collection
|
FluentSequenceX<T> |
plusAll(int i,
java.util.Collection<? extends T> list)
Add all of the supplied elements at the supplied index
|
FluentSequenceX<T> |
subList(int start,
int end)
Create a sub sequence between the two supplied index
|
FluentSequenceX<T> |
with(int i,
T e)
Replace the value at the specifed index with the supplied value
|
plusInOrder, plusLoop, plusLoop, unit
cast, combinations, combinations, combine, cycle, cycle, cycleUntil, cycleWhile, distinct, drop, dropRight, dropUntil, dropWhile, filterNot, findAny, findFirst, flatMapP, flatMapS, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, from, fromCollection, getAtIndex, groupBy, grouped, grouped, grouped, grouped, groupedStatefullyUntil, groupedUntil, groupedUntil, groupedWhile, groupedWhile, head, headAndTail, intersperse, isEmpty, iterator, limit, limitLast, limitUntil, limitWhile, materialize, notNull, onEmpty, onEmptyGet, onEmptyThrow, peek, permutations, removeAllS, removeAllS, removeAllS, retainAllS, retainAllS, retainAllS, reverse, scanLeft, scanLeft, scanRight, scanRight, shuffle, shuffle, single, single, singleOptional, skip, skipLast, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, sorted, stream, take, takeRight, takeUntil, takeWhile, trampoline, unit, zip, zip, zip3, zip4, zipS, zipS, zipWithIndex
apply, foldFuture, foldLazy, foldTry, forEach, forEach, forEach, forEach, forEach, runFuture, runLazy, seq, subscribe, subscribe, subscribe, visit
andThen, andThen, bind, compose, functionOps, lift, lift, liftF, liftOpt, liftTry, memoize, memoize, product, reader, λ, λv
apply, applyPartially, applyPartially, curry, curry, from, toFunction
allMatch, anyMatch, avg, avgDouble, avgInt, avgLong, bitAnd, bitAndInt, bitAndLong, bitOr, bitOrInt, bitOrLong, collect, collectable, commonPrefix, commonSuffix, count, count, countDistinct, countDistinct, countDistinctBy, countDistinctBy, max, max, max, max, maxAll, maxAll, maxAll, maxAll, maxAllBy, maxAllBy, maxBy, maxBy, median, median, medianBy, medianBy, min, min, min, min, minAll, minAll, minAll, minAll, minAllBy, minAllBy, minBy, minBy, mode, modeAll, modeAllBy, modeBy, noneMatch, percentile, percentile, percentileBy, percentileBy, sum, sumDouble, sumInt, sumLong, toCollection, toList, toList, toMap, toMap, toSet, toSet, toString, toString
endsWith, endsWithIterable, firstValue, foldLeft, foldLeft, foldLeft, foldLeft, foldRight, foldRight, foldRight, foldRightMapToType, get, join, join, join, mapReduce, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, startsWith, startsWithIterable, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, xMatch
toDequeX, toFutureStream, toFutureStream, toListX, toMapX, toOptional, toPBagX, toPMapX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toStreamable, toValue
append, append, deleteBetween, insertAt, insertAtS, mapToDouble, mapToInt, mapToLong, prepend, prepend, prependS, recover, recover, subscribe, traversable, unitIterator
zip, zip3, zip4, zipP, zipP, zipWith, zipWithP, zipWithS
futureStream, getStreamable, jdkStream, reactiveSeq, reveresedJDKStream, reveresedStream
retry, retry
groupedStatefullyUntilT, groupedT, groupedUntilT, groupedWhileT, slidingT, slidingT
fixedDelay, onePer, xPer
FluentSequenceX<T> plus(T e)
FluentCollectionX
plus
in interface FluentCollectionX<T>
e
- Element to addFluentSequenceX<T> plusAll(java.util.Collection<? extends T> list)
FluentCollectionX
plusAll
in interface FluentCollectionX<T>
list
- of elements to addFluentSequenceX<T> with(int i, T e)
i
- Index to replace value ate
- Value to useFluentSequenceX<T> plus(int i, T e)
i
- Index to add element ate
- Element to addFluentSequenceX<T> plusAll(int i, java.util.Collection<? extends T> list)
i
- Index to add element atlist
- Collection of elements to addFluentSequenceX<T> minus(java.lang.Object e)
FluentCollectionX
minus
in interface FluentCollectionX<T>
e
- Element to removeFluentSequenceX<T> minusAll(java.util.Collection<?> list)
FluentCollectionX
minusAll
in interface FluentCollectionX<T>
list
- of elements to removeFluentSequenceX<T> minus(int i)
i
- Index at which to remvoe elementFluentSequenceX<T> subList(int start, int end)
start
- Index of our sub sequence (inclusive)end
- Index of our sub sequence (exclusive)FluentSequenceX<T> filter(java.util.function.Predicate<? super T> pred)
Filters
of(1,2,3).filter(i->i>2);
//[3]
filter
in interface CollectionX<T>
filter
in interface FilterableTransformable<T>
filter
in interface Filters<T>
pred
- to filter elements by, retaining matches<R> FluentSequenceX<R> map(java.util.function.Function<? super T,? extends R> mapper)
Transformable
of(1,2,3).map(i->i*2)
//[2,4,6]
map
in interface CollectionX<T>
map
in interface FilterableTransformable<T>
map
in interface Transformable<T>
mapper
- Transformation function<R> FluentSequenceX<R> flatMap(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends R>> mapper)
CollectionX
flatMap
in interface CollectionX<T>
mapper
- Transformation function to be applied (and flattened)