/** * {@inheritDoc} */ @Override public V getFirst(K k) { List<V> list = get(k); return list != null ? list.get(0) : null; }
/** * {@inheritDoc} */ @Override public V getFirst(K k) { List<V> list = get(k); return list != null ? list.get(0) : null; }
/** * Retrieves the list associated with given key. * * @param k the key * * @return the list associated with given key */ private List<V> getList(K k) { List<V> list = get(k); if (list == null) { list = new ArrayList<V>(); put(k, list); } return list; } }
/** * Retrieves the list associated with given key. * * @param k * the key * * @return the list associated with given key */ private List<V> getList(K k) { List<V> list = get(k); if (list == null) { list = new ArrayList<V>(); put(k, list); } return list; } }