public void add(TypeIdSpec typeId) throws SwarmException { JsonObject changes = new JsonObject(); changes.set(typeId.toString(), TRUE); change(changes); }
public void remove(TypeIdSpec key_spec) throws SwarmException { JsonObject changes = new JsonObject(); changes.set(key_spec.toString(), FALSE); change(changes); }
/** * Adds an object to the set. * * @param obj the object //TODO , its id or its specifier. */ public void add(T obj) throws SwarmException { final TypeIdSpec key_spec = obj.getTypeId(); JsonObject changes = new JsonObject(); changes.set(key_spec.toString(), TRUE); change(changes); }