Exemple #1
0
 public void add(TypeIdSpec typeId) throws SwarmException {
   JsonObject changes = new JsonObject();
   changes.set(typeId.toString(), TRUE);
   change(changes);
 }
Exemple #2
0
 public void remove(TypeIdSpec key_spec) throws SwarmException {
   JsonObject changes = new JsonObject();
   changes.set(key_spec.toString(), FALSE);
   change(changes);
 }
Exemple #3
0
 /**
  * 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);
 }