Package com.liferay.portal.kernel.util
Class LinkedHashMapBuilder<K,V>
Object
com.liferay.portal.kernel.util.BaseMapBuilder
com.liferay.portal.kernel.util.LinkedHashMapBuilder<K,V>
- Author:
- Hugo Huijser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Nested classes/interfaces inherited from class com.liferay.portal.kernel.util.BaseMapBuilder
BaseMapBuilder.UnsafeFunction<T,
R, E extends Throwable>, BaseMapBuilder.UnsafeSupplier<T, E extends Throwable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> create
(int initialCapacity) static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> create
(int initialCapacity, float loadFactor) static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> create
(int initialCapacity, float loadFactor, boolean accessOrder) static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> put
(BaseMapBuilder.UnsafeSupplier<K, Exception> keyUnsafeSupplier, BaseMapBuilder.UnsafeSupplier<V, Exception> valueUnsafeSupplier) static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> put
(BaseMapBuilder.UnsafeSupplier<K, Exception> keyUnsafeSupplier, V value) static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> put
(Collection<? extends K> inputCollection, BaseMapBuilder.UnsafeFunction<K, V, Exception> unsafeFunction) static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> put
(K key, BaseMapBuilder.UnsafeSupplier<V, Exception> valueUnsafeSupplier) static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V> put
(K key, V value) static <K,
V> LinkedHashMapBuilder.LinkedHashMapWrapper<K, V>
-
Constructor Details
-
LinkedHashMapBuilder
public LinkedHashMapBuilder()
-
-
Method Details
-
create
-
create
public static <K,V> LinkedHashMapBuilder.LinkedHashMapWrapper<K,V> create(int initialCapacity, float loadFactor) -
create
public static <K,V> LinkedHashMapBuilder.LinkedHashMapWrapper<K,V> create(int initialCapacity, float loadFactor, boolean accessOrder) -
create
public static <K,V> LinkedHashMapBuilder.LinkedHashMapWrapper<K,V> create(Map<? extends K, ? extends V> map) -
put
public static <K,V> LinkedHashMapBuilder.LinkedHashMapWrapper<K,V> put(Collection<? extends K> inputCollection, BaseMapBuilder.UnsafeFunction<K, V, Exception> unsafeFunction) -
put
public static <K,V> LinkedHashMapBuilder.LinkedHashMapWrapper<K,V> put(K key, BaseMapBuilder.UnsafeSupplier<V, Exception> valueUnsafeSupplier) -
put
-
put
public static <K,V> LinkedHashMapBuilder.LinkedHashMapWrapper<K,V> put(BaseMapBuilder.UnsafeSupplier<K, Exception> keyUnsafeSupplier, BaseMapBuilder.UnsafeSupplier<V, Exception> valueUnsafeSupplier) -
put
public static <K,V> LinkedHashMapBuilder.LinkedHashMapWrapper<K,V> put(BaseMapBuilder.UnsafeSupplier<K, Exception> keyUnsafeSupplier, V value) -
putAll
public static <K,V> LinkedHashMapBuilder.LinkedHashMapWrapper<K,V> putAll(Map<? extends K, ? extends V> inputMap)
-