Java Map Create createMap(int len)

Here you can find the source of createMap(int len)

Description

create Map

License

Open Source License

Declaration

public static Map createMap(int len) 

Method Source Code

//package com.java2s;
/*//from  w ww . ja v  a 2  s . c  om
 * @(#)Utilities.java   2011-02-10
 *
 * Copyright (c) 2007-2009 appNativa Inc. All rights reserved.
 *
 * Use is subject to license terms.
 */

import java.util.HashMap;

import java.util.Map;

public class Main {
    public static Map createMap(int len) {
        if (len < 1) {
            return new HashMap();
        }

        return new HashMap(len);
    }
}

Related

  1. createMap()
  2. createMap()
  3. createMap()
  4. createMap()
  5. createMap(boolean full)
  6. createMap(Iterable> entries)
  7. createMap(K k1, V v1)
  8. createMap(K[] keys, V[] values)
  9. createMap(List keys, List values)