You would like to use Map<Key, Value> items = new HashMap<>() since in general you do not want implementation detail leaking into contracts