protected BitSet cloneBitSet() { return (BitSet) bitmap.clone(); }
private SearchState(BitSet deletionMask, int currentIndex, SemanticGraph tree, String lastDeletedEdge, SearchState source, double score) { this.deletionMask = (BitSet) deletionMask.clone(); this.currentIndex = currentIndex; this.tree = tree; this.lastDeletedEdge = lastDeletedEdge; this.source = source; this.score = score; } }
private BitSetMatcher(BitSet table, String description) { super(description); if (table.length() + Long.SIZE < table.size()) { table = (BitSet) table.clone(); // If only we could actually call BitSet.trimToSize() ourselves... } this.table = table; }
/** * Creates a copy of actions. * * @param actions the actions to be copied from */ public AclActions(AclActions actions) { mActions = (BitSet) actions.mActions.clone(); }
private BitSetMatcher(BitSet table, String description) { super(description); if (table.length() + Long.SIZE < table.size()) { table = (BitSet) table.clone(); // If only we could actually call BitSet.trimToSize() ourselves... } this.table = table; }
private BitSetMatcher(BitSet table, String description) { super(description); if (table.length() + Long.SIZE < table.size()) { table = (BitSet) table.clone(); // If only we could actually call BitSet.trimToSize() ourselves... } this.table = table; }
@Override public ArgumentListBuilder clone() { ArgumentListBuilder r = new ArgumentListBuilder(); r.args.addAll(this.args); r.mask = (BitSet) this.mask.clone(); return r; }
/** get def OR born */ BitSet getCombo() { BitSet combo = (BitSet) born.clone(); combo.or(def); return combo; }
private BitSetMatcher(BitSet table, String description) { super(description); if (table.length() + Long.SIZE < table.size()) { table = (BitSet) table.clone(); // If only we could actually call BitSet.trimToSize() ourselves... } this.table = table; }
public ImmutableBitSet(BitSet set) { this.set = (BitSet) set.clone(); this.arr = new int[set.cardinality()]; int j = 0; for (int i = set.nextSetBit(0); i >= 0; i = set.nextSetBit(i + 1)) { arr[j++] = i; } }
public boolean hasTopic(Topic topic) { BitSet m = new BloomFilter(topic).mask; BitSet m1 = (BitSet) m.clone(); m1.and(mask); return m1.equals(m); }
public ImmutableBooleanList newWith(boolean element) { BitSet newItems = (BitSet) this.items.clone(); if (element) { newItems.set(this.size); } return new ImmutableBooleanArrayList(newItems, this.size + 1); }
private static boolean subset(BitSet sub, BitSet sup) { BitSet subcopy = (BitSet) sub.clone(); subcopy.andNot(sup); return subcopy.isEmpty(); }
@Override public RVVExceptionB clone() { RVVExceptionB clone = new RVVExceptionB(previousVersion, nextVersion); if (this.received != null) { clone.received = (BitSet) this.received.clone(); clone.receivedBaseVersion = this.receivedBaseVersion; } return clone; }
public void deepCloneLocalValueSlot(int localRef, int index) { this.state[localRef] = (ArrayTypesInternal) this.state[localRef].clone(); this.state[localRef].typeState[index] = (BitSet) this.state[localRef].typeState[index].clone(); } }
@Override public ImmutableBitmap intersection(ImmutableBitmap otherBitmap) { WrappedBitSetBitmap retval = new WrappedBitSetBitmap((BitSet) bitmap.clone()); retval.and((WrappedBitSetBitmap) otherBitmap); return retval; }
public ImmutableBitmap union(ImmutableBitmap otherBitmap) { WrappedBitSetBitmap retval = new WrappedBitSetBitmap((BitSet) bitmap.clone()); retval.or((WrappedBitSetBitmap) otherBitmap); return retval; }
public InputRequireThisValidateOnlyOverlappingFalse(BitSet fieldFinal3) { fieldFinal1 = 1L; // violation fieldFinal2 = 0L; // violation fieldFinal3 = new BitSet(); if (true) { fieldFinal3 = (BitSet) fieldFinal3.clone(); } this.fieldFinal3 = fieldFinal3; }
public InputRequireThisValidateOnlyOverlappingTrue(BitSet fieldFinal3) { fieldFinal1 = 1L; fieldFinal2 = 0L; fieldFinal3 = new BitSet(); if (true) { fieldFinal3 = (BitSet) fieldFinal3.clone(); } this.fieldFinal3 = fieldFinal3; }
public ImmutableBooleanList newWithAll(BooleanIterable elements) { BitSet newItems = (BitSet) this.items.clone(); int index = 0; for (BooleanIterator booleanIterator = elements.booleanIterator(); booleanIterator.hasNext(); index++) { if (booleanIterator.next()) { newItems.set(this.size + index); } } return new ImmutableBooleanArrayList(newItems, this.size + elements.size()); }