@Test public void removeFromGroup() { Group<String, String> group = new Group<String, String>(); group.addToGroup("a", "b"); group.addToGroup("a", "c"); group.removeFromGroup("a", "b"); assertThat(group.getGroup("a")).containsExactly("c"); }
public void removeFromGroup(K groupKey, T object) { Array<T> list = getGroup(groupKey); list.removeValue(object, false); all.removeValue(object, false); sourceToKeyMap.remove(object); }
Group { public void removeFromGroup(K groupKey, T object) { Array<T> list = getGroup(groupKey); list.removeValue(object, false); all.removeValue(object, false); sourceToKeyMap.remove(object); } }
Group { public void removeFromGroup(K groupKey, T object) { Array<T> list = getGroup(groupKey); list.removeValue(object, false); all.removeValue(object, false); sourceToKeyMap.remove(object); }  }
Group { public void removeFromGroup(K groupKey, T object) { Array<T> list = getGroup(groupKey); list.removeValue(object, false); all.removeValue(object, false); sourceToKeyMap.remove(object); }  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 removeFromGroup(K groupKey, T object) { Array<T> list = getGroup(groupKey); list.removeValue(object, false); all.removeValue(object, false); sourceToKeyMap.remove(object); }  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();  }