public class MapUtility
extends java.lang.Object
maps| Modifier and Type | Method and Description |
|---|---|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(@NotNull java.util.List<T> keys,
@NotNull java.util.List<G> values)
Generates a map from a list of keys and a list of values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value)
Generates a map from a key and a value
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2)
Generates a map from two keys and two values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2,
T key3,
G value3)
Generates a map from three keys and three values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2,
T key3,
G value3,
T key4,
G value4)
Generates a map from four keys and four values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2,
T key3,
G value3,
T key4,
G value4,
T key5,
G value5)
Generates a map from five keys and five values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2,
T key3,
G value3,
T key4,
G value4,
T key5,
G value5,
T key6,
G value6)
Generates a map from six keys and six values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2,
T key3,
G value3,
T key4,
G value4,
T key5,
G value5,
T key6,
G value6,
T key7,
G value7)
Generates a map from seven keys and seven values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2,
T key3,
G value3,
T key4,
G value4,
T key5,
G value5,
T key6,
G value6,
T key7,
G value7,
T key8,
G value8)
Generates a map from eight keys and eight values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2,
T key3,
G value3,
T key4,
G value4,
T key5,
G value5,
T key6,
G value6,
T key7,
G value7,
T key8,
G value8,
T key9,
G value9)
Generates a map from nine keys and nine values
|
static <T,G> @NotNull java.util.Map<T,G> |
mapOf(T key,
G value,
T key2,
G value2,
T key3,
G value3,
T key4,
G value4,
T key5,
G value5,
T key6,
G value6,
T key7,
G value7,
T key8,
G value8,
T key9,
G value9,
T key10,
G value10)
Generates a map from ten keys and ten values
|
@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
@NotNull java.util.List<T> keys,
@NotNull
@NotNull java.util.List<G> values)
T - the type of the keysG - the type of the valueskeys - the list of keysvalues - the list of values@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value)
T - the type of the keyG - the type of the valuekey - the keyvalue - the value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2,
@NotNull
T key3,
@NotNull
G value3)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second valuekey3 - the third keyvalue3 - the third value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2,
@NotNull
T key3,
@NotNull
G value3,
@NotNull
T key4,
@NotNull
G value4)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second valuekey3 - the third keyvalue3 - the third valuekey4 - the fourth keyvalue4 - the fourth value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2,
@NotNull
T key3,
@NotNull
G value3,
@NotNull
T key4,
@NotNull
G value4,
@NotNull
T key5,
@NotNull
G value5)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second valuekey3 - the third keyvalue3 - the third valuekey4 - the fourth keyvalue4 - the fourth valuekey5 - the fifth keyvalue5 - the fifth value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2,
@NotNull
T key3,
@NotNull
G value3,
@NotNull
T key4,
@NotNull
G value4,
@NotNull
T key5,
@NotNull
G value5,
@NotNull
T key6,
@NotNull
G value6)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second valuekey3 - the third keyvalue3 - the third valuekey4 - the fourth keyvalue4 - the fourth valuekey5 - the fifth keyvalue5 - the fifth valuekey6 - the sixth keyvalue6 - the sixth value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2,
@NotNull
T key3,
@NotNull
G value3,
@NotNull
T key4,
@NotNull
G value4,
@NotNull
T key5,
@NotNull
G value5,
@NotNull
T key6,
@NotNull
G value6,
@NotNull
T key7,
@NotNull
G value7)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second valuekey3 - the third keyvalue3 - the third valuekey4 - the fourth keyvalue4 - the fourth valuekey5 - the fifth keyvalue5 - the fifth valuekey6 - the sixth keyvalue6 - the sixth valuekey7 - the seventh keyvalue7 - the seventh value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2,
@NotNull
T key3,
@NotNull
G value3,
@NotNull
T key4,
@NotNull
G value4,
@NotNull
T key5,
@NotNull
G value5,
@NotNull
T key6,
@NotNull
G value6,
@NotNull
T key7,
@NotNull
G value7,
@NotNull
T key8,
@NotNull
G value8)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second valuekey3 - the third keyvalue3 - the third valuekey4 - the fourth keyvalue4 - the fourth valuekey5 - the fifth keyvalue5 - the fifth valuekey6 - the sixth keyvalue6 - the sixth valuekey7 - the seventh keyvalue7 - the seventh valuekey8 - the eighth keyvalue8 - the eighth value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2,
@NotNull
T key3,
@NotNull
G value3,
@NotNull
T key4,
@NotNull
G value4,
@NotNull
T key5,
@NotNull
G value5,
@NotNull
T key6,
@NotNull
G value6,
@NotNull
T key7,
@NotNull
G value7,
@NotNull
T key8,
@NotNull
G value8,
@NotNull
T key9,
@NotNull
G value9)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second valuekey3 - the third keyvalue3 - the third valuekey4 - the fourth keyvalue4 - the fourth valuekey5 - the fifth keyvalue5 - the fifth valuekey6 - the sixth keyvalue6 - the sixth valuekey7 - the seventh keyvalue7 - the seventh valuekey8 - the eighth keyvalue8 - the eighth valuekey9 - the ninth keyvalue9 - the ninth value@NotNull
public static <T,G> @NotNull java.util.Map<T,G> mapOf(@NotNull
T key,
@NotNull
G value,
@NotNull
T key2,
@NotNull
G value2,
@NotNull
T key3,
@NotNull
G value3,
@NotNull
T key4,
@NotNull
G value4,
@NotNull
T key5,
@NotNull
G value5,
@NotNull
T key6,
@NotNull
G value6,
@NotNull
T key7,
@NotNull
G value7,
@NotNull
T key8,
@NotNull
G value8,
@NotNull
T key9,
@NotNull
G value9,
@NotNull
T key10,
@NotNull
G value10)
T - the type of the keysG - the type of the valueskey - the first keyvalue - the first valuekey2 - the second keyvalue2 - the second valuekey3 - the third keyvalue3 - the third valuekey4 - the fourth keyvalue4 - the fourth valuekey5 - the fifth keyvalue5 - the fifth valuekey6 - the sixth keyvalue6 - the sixth valuekey7 - the seventh keyvalue7 - the seventh valuekey8 - the eighth keyvalue8 - the eighth valuekey9 - the ninth keyvalue9 - the ninth valuekey10 - the tenth keyvalue10 - the tenth value