Package | Description |
---|---|
org.anchoranalysis.core.functional |
Utilities and interfaces for applying functional-programming.
|
Modifier and Type | Method and Description |
---|---|
static <S,T,E extends Exception> |
FunctionalList.filterAndMapWithIndexToList(List<S> list,
java.util.function.Predicate<S> predicate,
CheckedFunctionWithInt<S,T,E> mapFuncWithIndex)
Creates a new collection by filtering a list and then mapping (with an index) to a list of
another type.
|
static <S,T,E extends Exception> |
FunctionalList.mapToListOptionalWithIndex(List<S> list,
Class<? extends Exception> throwableClass,
CheckedFunctionWithInt<S,Optional<T>,E> mapFunction)
Maps a list to a new list with each element in the original collection maybe producing an
element in the output.
|
static <S,T,E extends Exception> |
FunctionalList.mapToListWithIndex(List<S> list,
Class<? extends Exception> throwableClass,
CheckedFunctionWithInt<S,T,E> mapFunction)
Maps a collection to a list with each element derived from a corresponding element in the
original collection - and also letting the map function use an index.
|
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.