aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/CollectionUtils.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-01-22 00:48:09 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-01-22 00:48:09 -0800
commitad7e0f9fe4450e1f427f782a14c7eb774fca5c22 (patch)
treec7ac1d3e291d1846ed150b80246a553922fd3bbd /java/src/com/android/inputmethod/latin/CollectionUtils.java
parent0390acf1ba37c075fc8b67196ef03e2941286bee (diff)
parentf008a11ccef84916197b0031a8ed3353c87c10f1 (diff)
downloadlatinime-ad7e0f9fe4450e1f427f782a14c7eb774fca5c22.tar.gz
latinime-ad7e0f9fe4450e1f427f782a14c7eb774fca5c22.tar.xz
latinime-ad7e0f9fe4450e1f427f782a14c7eb774fca5c22.zip
am f008a11c: Merge "Cache MoreKeysKeyboard instead of container view of it"
* commit 'f008a11ccef84916197b0031a8ed3353c87c10f1': Cache MoreKeysKeyboard instead of container view of it
Diffstat (limited to 'java/src/com/android/inputmethod/latin/CollectionUtils.java')
-rw-r--r--java/src/com/android/inputmethod/latin/CollectionUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/CollectionUtils.java b/java/src/com/android/inputmethod/latin/CollectionUtils.java
index c75f2df5c..a8623cc63 100644
--- a/java/src/com/android/inputmethod/latin/CollectionUtils.java
+++ b/java/src/com/android/inputmethod/latin/CollectionUtils.java
@@ -27,6 +27,7 @@ import java.util.LinkedList;
import java.util.Map;
import java.util.TreeMap;
import java.util.TreeSet;
+import java.util.WeakHashMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
@@ -39,6 +40,10 @@ public final class CollectionUtils {
return new HashMap<K,V>();
}
+ public static <K, V> WeakHashMap<K, V> newWeakHashMap() {
+ return new WeakHashMap<K, V>();
+ }
+
public static <K,V> TreeMap<K,V> newTreeMap() {
return new TreeMap<K,V>();
}