Java HashMap Create getHashMap()

Here you can find the source of getHashMap()

Description

get Hash Map

License

Open Source License

Declaration

public static HashMap<String, Long> getHashMap() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.HashMap;

public class Main {
    public static HashMap<String, Long> getHashMap() {

        Runtime runtime = Runtime.getRuntime();

        HashMap<String, Long> params = new HashMap<String, Long>();

        params.put("Used", runtime.totalMemory() - runtime.freeMemory());
        params.put("Free", runtime.freeMemory());
        params.put("Total", runtime.totalMemory());
        params.put("Max", runtime.maxMemory());

        return params;

    }//from w w w.j ava  2s  .  co  m
}

Related

  1. createHashMap(Object key, Object value)
  2. createHashMapIfNull(Map map)
  3. createHashMapWithSize(final int size)
  4. getHashMap()
  5. getHashMap()
  6. getHashMap()
  7. getHashMap(Object... args)
  8. getHashMapFromArrayList( ArrayList lines, int keyIndex)
  9. getHashMapFromMap( Map map, K key)