/** * Constructs a new bucket set that is a copy of another. * * @param set The set to copy. */ public BucketSet(BucketSet set) { this.addAll(set); }
/** * Returns the union between this bucket set and another. * * @param rhs The set to form a union with. * @return The union. */ public BucketSet union(BucketSet rhs) { if (rhs == null) { return null; } else { BucketSet ret = new BucketSet(this); ret.addAll(rhs); return ret; } }