@Override public boolean addAll(Collection c) { if (c instanceof StructSet) { return addAll((StructSet) c); } else { boolean modified = false; for (Object o : c) { modified |= add(o); } return modified; } }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { this.contents = new ObjectOpenCustomHashSet(new ObjectArrayHashingStrategy()); int size = in.readInt(); this.structType = (StructTypeImpl) DataSerializer.readObject(in); for (int j = size; j > 0; j--) { this.add(DataSerializer.readObject(in)); } }