com.atlassian.core.util.map
Class EasyMap

java.lang.Object
  extended by com.atlassian.core.util.map.EasyMap

Deprecated. use Guava's ImmutableMap.

@Deprecated
public class EasyMap
extends Object

A replacement for UtilMisc.toMap().

Most methods here are not null safe


Constructor Summary
EasyMap()
          Deprecated.  
 
Method Summary
static
<K,V> Map<K,V>
build()
          Deprecated.  
static
<K,V> Map<K,V>
build(K key1, V value1)
          Deprecated.  
static
<K,V> Map<K,V>
build(K key1, V value1, K key2, V value2)
          Deprecated.  
static
<K,V> Map<K,V>
build(K key1, V value1, K key2, V value2, K key3, V value3)
          Deprecated.  
static
<K,V> Map<K,V>
build(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
          Deprecated.  
static
<K,V> Map<K,V>
build(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
          Deprecated.  
static
<K,V> Map<K,V>
build(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6)
          Deprecated.  
static
<K,V> Map<K,V>
build(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7)
          Deprecated.  
static
<K,V> Map<K,V>
build(Object... objects)
          Deprecated. Takes a variable number of objects to build a map
static
<K,V> Map<K,V>
createMap(int size)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasyMap

public EasyMap()
Deprecated. 
Method Detail

build

public static <K,V> Map<K,V> build()
Deprecated. 

build

public static <K,V> Map<K,V> build(K key1,
                                   V value1)
Deprecated. 

build

public static <K,V> Map<K,V> build(K key1,
                                   V value1,
                                   K key2,
                                   V value2)
Deprecated. 

build

public static <K,V> Map<K,V> build(K key1,
                                   V value1,
                                   K key2,
                                   V value2,
                                   K key3,
                                   V value3)
Deprecated. 

build

public static <K,V> Map<K,V> build(K key1,
                                   V value1,
                                   K key2,
                                   V value2,
                                   K key3,
                                   V value3,
                                   K key4,
                                   V value4)
Deprecated. 

build

public static <K,V> Map<K,V> build(K key1,
                                   V value1,
                                   K key2,
                                   V value2,
                                   K key3,
                                   V value3,
                                   K key4,
                                   V value4,
                                   K key5,
                                   V value5)
Deprecated. 

build

public static <K,V> Map<K,V> build(K key1,
                                   V value1,
                                   K key2,
                                   V value2,
                                   K key3,
                                   V value3,
                                   K key4,
                                   V value4,
                                   K key5,
                                   V value5,
                                   K key6,
                                   V value6)
Deprecated. 

build

public static <K,V> Map<K,V> build(K key1,
                                   V value1,
                                   K key2,
                                   V value2,
                                   K key3,
                                   V value3,
                                   K key4,
                                   V value4,
                                   K key5,
                                   V value5,
                                   K key6,
                                   V value6,
                                   K key7,
                                   V value7)
Deprecated. 

createMap

public static <K,V> Map<K,V> createMap(int size)
Deprecated. 

build

public static <K,V> Map<K,V> build(Object... objects)
Deprecated. 
Takes a variable number of objects to build a map

Parameters:
objects -
Returns:
Throws:
RuntimeException - if parameters are not even


Copyright © 2015 Atlassian. All rights reserved.