Lines Matching defs:map
80 final HashMap<Long, Long> map = new HashMap<Long, Long>();
87 map.put(key, value);
90 if (r.nextBoolean() && map.size() > 0) {
91 final int index = r.nextInt(map.size());
92 final long key = getKeyAtIndex(map, index);
93 map.remove(key);
98 Log.d(TAG, "verifying a map with " + map.size() + " entries");
100 for (Map.Entry<Long, Long> e : map.entrySet()) {
107 private static <E> E getKeyAtIndex(Map<E, ?> map, int index) {
108 final Iterator<E> keys = map.keySet().iterator();