|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.map.MapBuilderOld<K,V>
K - V - MapUtils.builder() or MapBuilder instead
@Deprecated public class MapBuilderOld<K,V>
Builder for Map instances filled with keys and values.
The MapBuilderOld is not thread safe, since it uses an temporary not thread safe internal Map.
The order of elements is respected when put into the Map. A Map implementation which supports ordering will
contain the Map.Entrys in the right order afterwards.
Example:
Map<String, String> map = new MapBuilder<String, String>().linkedHashMap().put( "key1", "value1" ).put( "key2", "value2" ).build()
Map,
SortedMap| Nested Class Summary | |
|---|---|
class |
MapBuilderOld.MapBuilderWithMap<M extends Map<K,V>>
Deprecated. A MapBuilderOld which has a declared Map type and now allows to modify and build a Map |
static class |
MapBuilderOld.MapFactory<K,V>
Deprecated. Factory for a Map instance |
| Constructor Summary | |
|---|---|
MapBuilderOld()
Deprecated. |
|
| Method Summary | |
|---|---|
MapBuilderOld.MapBuilderWithMap<Map<K,V>> |
concurrentHashMap()
Deprecated. |
MapBuilderOld.MapBuilderWithMap<Map<K,V>> |
concurrentHashMap(int initialCapacity)
Deprecated. |
MapBuilderOld.MapBuilderWithMap<Map<K,V>> |
hashMap()
Deprecated. |
MapBuilderOld.MapBuilderWithMap<Map<K,V>> |
linkedHashMap()
Deprecated. |
MapBuilderOld.MapBuilderWithMap<Map<K,V>> |
map(Class<? extends Map> mapType,
Object... arguments)
Deprecated. Generic MapBuilderOld instance creator method which creates a MapBuilderOld with a Map instance of
the given Class by using reflection. |
MapBuilderOld.MapBuilderWithMap<Map<K,V>> |
map(MapBuilderOld.MapFactory<K,V> mapFactory)
Deprecated. MapBuilderOld using a MapBuilderOld.MapFactory to create a Map instance at MapBuilderOld.MapBuilderWithMap.build() time |
MapBuilderOld.MapBuilderWithMap<SortedMap<K,V>> |
treeMap()
Deprecated. |
MapBuilderOld.MapBuilderWithMap<SortedMap<K,V>> |
treeMap(Comparator<? super K> comparator)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapBuilderOld()
MapBuilderOld| Method Detail |
|---|
public MapBuilderOld.MapBuilderWithMap<Map<K,V>> hashMap()
MapBuilderOld.MapBuilderWithMapHashMappublic MapBuilderOld.MapBuilderWithMap<Map<K,V>> linkedHashMap()
MapBuilderOld.MapBuilderWithMapLinkedHashMappublic MapBuilderOld.MapBuilderWithMap<Map<K,V>> concurrentHashMap()
MapBuilderOld.MapBuilderWithMapConcurrentHashMappublic MapBuilderOld.MapBuilderWithMap<Map<K,V>> concurrentHashMap(int initialCapacity)
initialCapacity -
MapBuilderOld.MapBuilderWithMapConcurrentHashMappublic MapBuilderOld.MapBuilderWithMap<SortedMap<K,V>> treeMap()
MapBuilderOld.MapBuilderWithMapTreeMap,
SortedMappublic MapBuilderOld.MapBuilderWithMap<SortedMap<K,V>> treeMap(Comparator<? super K> comparator)
comparator -
MapBuilderOld.MapBuilderWithMapTreeMap,
SortedMappublic MapBuilderOld.MapBuilderWithMap<Map<K,V>> map(MapBuilderOld.MapFactory<K,V> mapFactory)
MapBuilderOld using a MapBuilderOld.MapFactory to create a Map instance at MapBuilderOld.MapBuilderWithMap.build() time
mapFactory - MapBuilderOld.MapFactory,
MapBuilderOld
public MapBuilderOld.MapBuilderWithMap<Map<K,V>> map(Class<? extends Map> mapType,
Object... arguments)
MapBuilderOld instance creator method which creates a MapBuilderOld with a Map instance of
the given Class by using reflection. The given Map implementation type has to have a default constructor or a
constructor which has the same parameter signature as the additionally given arguments.
mapType - arguments -
MapBuilderOld.MapBuilderWithMap
IllegalArgumentException - if no map instance could be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||