/** * this version of add all will likely be faster if the client doesn't care about the change or the population count. * @throws IllegalArgumentException if set == null */ public void addAllOblivious(IntSet set) throws IllegalArgumentException { if (set == null) { throw new IllegalArgumentException("set == null"); } if (set instanceof BitVectorIntSet) { BitVector B = ((BitVectorIntSet) set).bitVector; bitVector.or(B); populationCount = UNDEFINED; } else { BitVectorIntSet other = new BitVectorIntSet(set); addAllOblivious(other); } }
/** * this version of add all will likely be faster if the client doesn't care about the change or the population count. * @throws IllegalArgumentException if set == null */ public void addAllOblivious(IntSet set) throws IllegalArgumentException { if (set == null) { throw new IllegalArgumentException("set == null"); } if (set instanceof BitVectorIntSet) { BitVector B = ((BitVectorIntSet) set).bitVector; bitVector.or(B); populationCount = UNDEFINED; } else { BitVectorIntSet other = new BitVectorIntSet(set); addAllOblivious(other); } }
/** * this version of add all will likely be faster if the client doesn't care about the change or the population count. * @throws IllegalArgumentException if set == null */ public void addAllOblivious(IntSet set) throws IllegalArgumentException { if (set == null) { throw new IllegalArgumentException("set == null"); } if (set instanceof BitVectorIntSet) { BitVector B = ((BitVectorIntSet) set).bitVector; bitVector.or(B); populationCount = UNDEFINED; } else { BitVectorIntSet other = new BitVectorIntSet(set); addAllOblivious(other); } }
/** */ BitVectorIntSet makeDenseCopy() { if (privatePart == null) { if (sharedPart == null) { return new BitVectorIntSet(); } else { return new BitVectorIntSet(sharedPart); } } else { if (sharedPart == null) { return new BitVectorIntSet(privatePart); } else { BitVectorIntSet temp = new BitVectorIntSet(sharedPart); temp.addAllOblivious(privatePart); return temp; } } }
/** */ BitVectorIntSet makeDenseCopy() { if (privatePart == null) { if (sharedPart == null) { return new BitVectorIntSet(); } else { return new BitVectorIntSet(sharedPart); } } else { if (sharedPart == null) { return new BitVectorIntSet(privatePart); } else { BitVectorIntSet temp = new BitVectorIntSet(sharedPart); temp.addAllOblivious(privatePart); return temp; } } }
/** */ BitVectorIntSet makeDenseCopy() { if (privatePart == null) { if (sharedPart == null) { return new BitVectorIntSet(); } else { return new BitVectorIntSet(sharedPart); } } else { if (sharedPart == null) { return new BitVectorIntSet(privatePart); } else { BitVectorIntSet temp = new BitVectorIntSet(sharedPart); temp.addAllOblivious(privatePart); return temp; } } }
} else { BitVectorIntSet temp = new BitVectorIntSet(that.sharedPart); temp.addAllOblivious(that.privatePart); return privatePart.sameValue(temp);
} else { BitVectorIntSet temp = new BitVectorIntSet(that.sharedPart); temp.addAllOblivious(that.privatePart); return privatePart.sameValue(temp);
} else { BitVectorIntSet temp = new BitVectorIntSet(that.sharedPart); temp.addAllOblivious(that.privatePart); return privatePart.sameValue(temp);