@Test public void clearGroup() { Group<String, String> group = new Group<String, String>(); group.addToGroup("a", "b"); group.addToGroup("a", "c"); group.addToGroup("b", "b"); group.clearGroup("a"); assertThat(group.getGroup("a")).isEmpty(); assertThat(group.getGroup("b")).containsExactly("b"); }
public void clearGroup(K groupKey) { Array<T> list = map.get(groupKey); if (list != null) { list.clear(); } }
Group { public void clearGroup(K groupKey) { Array<T> list = map.get(groupKey); if (list != null) { list.clear(); } } }
Group { public void clearGroup(K groupKey) { Array<T> list = map.get(groupKey); if (list != null) { list.clear(); } }  }
Group { public void clearGroup(K groupKey) { Array<T> list = map.get(groupKey); if (list != null) { list.clear(); } }  void addToGroup(K groupKey, T object); Array<T> getAll(); Array<K> getGroupKeys(); void remove(T object); void removeFromGroup(K groupKey, T object); Array<T> getGroup(K groupKey); void clearGroup(K groupKey); void clear(); }
Group { public void clearGroup(K groupKey) { Array<T> list = map.get(groupKey); if (list != null) { list.clear(); } }  void addToGroup(K groupKey, T object); Array<T> getAll(); Array<K> getGroupKeys(); void remove(T object); void removeFromGroup(K groupKey, T object); Array<T> getGroup(K groupKey); void clearGroup(K groupKey); void clear();  }