| Package | Description |
|---|---|
| com.couchbase.client.core.util |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<?>> |
IntMap.from(Class<E> enumClass,
Function<E,Integer> keyExtractor)
Returns a new instance where the values are the values of the given enum class,
and the associated key is derived by applying the given function to the value.
|
static <E> IntMap<E> |
IntMap.from(Iterable<E> items,
Function<E,Integer> keyExtractor)
Returns a new instance where the values are the values of the given iterable,
and the associated key is derived by applying the given function to the value.
|
static <E> IntMap<E> |
IntMap.from(Map<Integer,E> map)
Returns a new instance from the entries of the given map.
|
Copyright © 2024 Couchbase, Inc.. All rights reserved.