public final class CollectionOptimizer extends Object
Modifier and Type | Method and Description |
---|---|
static <E> List<E> |
optimizeArrayList(List<E> list) |
static <K,V> Map<K,V> |
optimizeHashMap(Map<K,V> map) |
static <V> Set<V> |
optimizeHashSet(Set<V> set) |
static <K,V> Map<K,V> |
optimizeLinkedHashMap(Map<K,V> map) |
public static <K,V> Map<K,V> optimizeHashMap(Map<K,V> map)
map
- the map to optimize, not allowed to be null
public static <K,V> Map<K,V> optimizeLinkedHashMap(Map<K,V> map)
map
- the map to optimize, not allowed to be null
public static <V> Set<V> optimizeHashSet(Set<V> set)
set
- the set to optimize, not allowed to be null
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.