You can simulate several key-value (KV) pairs by storing a list of values for each on the map. This is the standard implementation approach for multi-valued cards.
So, if the key is an object Characterand the value Boolean, you can do
Map<Character, List<Boolean>> multimap = new Map<Character, List<Boolean>>();
and every time you want to add a new value to an existing KV pair on the map, just call
multimap.get(key).add(value);
key - value Boolean.
Guava Google ( ) Multimap, , a MultiMap<Character, Boolean> . , Apache Commons Collections MultiValueMap. fooobar.com/questions/754805/... .
, List Set.