@Override
public void addAll(String locationKey, Triple... values) {
final Number160 hash = Number160.createHash(locationKey);
Map<Number160, Data> map = new HashMap<Number160, Data>();
for (Triple t : values) {
Data valueToAdd = null;
final Number160 contentKey = Number160.createHash(t.toString());
try {
if (usingDebugObject)
valueToAdd = new Data(new TomP2P_Item<Triple>(locationKey,
t));
else
valueToAdd = new Data(t);
} catch (IOException e) {
e.printStackTrace();
}
map.put(contentKey, valueToAdd);
}