Java tutorial
//package com.java2s; import java.util.LinkedHashMap; import java.util.Map; public class Main { public static <K, V> Map<K, V> newCacheMap(int initialCapacity, float loadFactor, boolean accessOrder) { return new LinkedHashMap<K, V>(initialCapacity, loadFactor, accessOrder); } }