| Modifier and Type | Field and Description |
|---|---|
static ImmutableMap.MapEntry<?,?>[] |
ImmutableMap.emptyEntryArray |
| Modifier and Type | Method and Description |
|---|---|
static <KK,VV> ImmutableMap.MapEntry<KK,VV>[] |
ImmutableMap.createArray(int length)
Create an array of
ImmutableMap.MapEntry, of the specified length. |
static <KK,VV> ImmutableMap.MapEntry<KK,VV> |
ImmutableMap.entry(KK key,
VV value)
Create a
ImmutableMap.MapEntry. |
| Modifier and Type | Method and Description |
|---|---|
static <KK,VV> boolean |
ImmutableMap.containsKey(ImmutableMap.MapEntry<KK,VV>[] array,
int length,
KK key)
Test whether an array of
ImmutableMap.MapEntry contains the specified key. |
static <KK,VV> int |
ImmutableMap.findKey(ImmutableMap.MapEntry<KK,VV>[] array,
int length,
Object key)
Locate a key in an array of
ImmutableMap.MapEntry. |
static <KK,VV> ImmutableMap<KK,VV> |
ImmutableMap.mapOf(ImmutableMap.MapEntry<KK,VV>[] array)
Create an
ImmutableMap from the supplied array of ImmutableMap.MapEntry. |
static <KK,VV> ImmutableMap<KK,VV> |
ImmutableMap.mapOf(ImmutableMap.MapEntry<KK,VV>[] array,
int length)
Create an
ImmutableMap from the supplied array of ImmutableMap.MapEntry with the specified length. |
| Modifier and Type | Method and Description |
|---|---|
static <KK,VV> boolean |
ImmutableMap.containsKey(List<ImmutableMap.MapEntry<KK,VV>> list,
KK key)
Test whether a
List of ImmutableMap.MapEntry contains the specified key. |
static <KK,VV> ImmutableMap<KK,VV> |
ImmutableMap.from(List<ImmutableMap.MapEntry<KK,VV>> list)
|
| Constructor and Description |
|---|
ImmutableMap(ImmutableMap.MapEntry<K,V>[] array)
Construct an
ImmutableList with the given array (using the entire array). |
ImmutableMap(ImmutableMap.MapEntry<K,V>[] array,
int length)
Construct an
ImmutableMap with the given array (of ImmutableMap.MapEntry) and length. |
Copyright © 2021. All rights reserved.