* @see edu.vt.rt.datastructures.lang.DistributedSet#add(java.io.Serializable)
*/
@Atomic
@Override
public boolean add(E value) {
DirectoryManager locator = HyFlow.getLocator();
IDContainer<ImmutableHashMap<E, E>> container = (IDContainer<ImmutableHashMap<E, E>>) locator.open(containerID, "r");
final ImmutableHashMap<E, E> map = container.getItem();
Box found = new Box(null);
final ImmutableHashMap<E, E> newMap = map.put(value, value, found);
if (found.value != null) {
return false;
}
container = (IDContainer<ImmutableHashMap<E, E>>) locator.open(containerID, "w");
container.setItem(newMap);
return true;
}