public final class Indexing extends Object
| Modifier and Type | Method and Description |
|---|---|
static <I,R> Map<I,R> |
build(Iterable<? extends R> values,
Function<? super R,? extends I> indexFunction)
Builds an index for the given values, using the indexing function.
|
static <I,R> Map<I,R> |
build(R[] values,
Function<? super R,? extends I> indexFunction)
Builds an index for the given values, using the indexing function.
|
static <R extends Enum<?>> |
buildFromEnumName(Class<? extends R> enumClass)
Builds an index for the given enum using
Enum.name(). |
static <I,R> Map<I,R> |
buildMultiple(Iterable<? extends R> values,
Function<? super R,? extends Iterable<? extends I>> indexFunction)
Builds an index for the given values, using the indexing function.
|
static <I,R> Map<I,R> |
buildMultiple(R[] values,
Function<? super R,? extends Iterable<? extends I>> indexFunction)
Builds an index for the given values, using the indexing function.
|
public static <I,R> Map<I,R> build(Iterable<? extends R> values, Function<? super R,? extends I> indexFunction)
I - the index typeR - the actual (value) typevalues - the values to indexindexFunction - the index functionpublic static <I,R> Map<I,R> buildMultiple(Iterable<? extends R> values, Function<? super R,? extends Iterable<? extends I>> indexFunction)
I - the index typeR - the actual (value) typevalues - the values to indexindexFunction - the index functionpublic static <I,R> Map<I,R> build(R[] values, Function<? super R,? extends I> indexFunction)
I - the index typeR - the actual (value) typevalues - the values to indexindexFunction - the index functionpublic static <I,R> Map<I,R> buildMultiple(R[] values, Function<? super R,? extends Iterable<? extends I>> indexFunction)
I - the index typeR - the actual (value) typevalues - the values to indexindexFunction - the index functionpublic static <R extends Enum<?>> Map<String,R> buildFromEnumName(Class<? extends R> enumClass)
Enum.name().R - the enum typeenumClass - the enum classCopyright © 2022. All rights reserved.