Code examples for BitSet

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
33:	BitSet a = new BitSet(); 
-
36:	a.set(0); 
37:	a.set(70); 
-
39:	a.and(b); 
40:	if (a.length() != 0) 
Full Snippet Info
7
CodeRank
62:	private final BitSet daysOfWeek = new BitSet(7); 
-
266:	if (this.daysOfWeek.get(7)) { 
-
268:	this.daysOfWeek.set(0); 
269:	this.daysOfWeek.clear(7); 
Full Snippet Info
7
CodeRank
79:	BitSet bits = new BitSet(3); 
-
81:	bits.set(0, unsignedFitsInByte(regs.get(0).getReg())); 
82:	bits.set(1, unsignedFitsInByte(regs.get(1).getReg())); 
83:	bits.set(2, unsignedFitsInByte(regs.get(2).getReg())); 
Full Snippet Info
7
CodeRank
51:	if (bitSet.get((int) remainder)) { 
-
54:	bitSet.set((int) remainder); 
55:	int nextClearBit = bitSet.nextClearBit(0); 
-
57:	bitSet = bitSet.get(nextClearBit, 
58:	Math.max(nextClearBit, bitSet.length())); 
Full Snippet Info
7
CodeRank
42:	if ( m_visited.get(row) ) { 
-
45:	m_visited.set(row); 
Full Snippet Info
7
CodeRank
53:	final BitSet allFixed = new BitSet(); 
54:	allFixed.set(0); 
55:	allFixed.set(1); 
56:	allFixed.set(2); 
57:	allFixed.set(3); 
Full Snippet Info
7
CodeRank
46:	m_bits = new BitSet(capacity); 
47:	m_bits.set(0, capacity, defaultValue); 
Full Snippet Info
7
CodeRank
50:	property.set(xChunk + zChunk * 16, value); 
-
52:	if (property.cardinality() >= 16 * 16) { 
Full Snippet Info
7
CodeRank
84:	if ( set.get(value) ) { 
85:	set.clear(value); 
Full Snippet Info
7
CodeRank
82:	BitSet bits = new BitSet(); 
-
87:	LockConsumer consumer1 = new LockConsumer(consumer1Id, consumer1Latch, 0, bits, service1); 
-
93:	LockConsumer consumer2 = new LockConsumer(consumer2Id, consumer2Latch, 1, bits, service2); 
-
101:	assertTrue(bits.get(0)); 
-
108:	assertFalse(bits.get(1)); 
Full Snippet Info
7
CodeRank
77:	BitSet bits = new BitSet(2); 
-
79:	bits.set(0, unsignedFitsInByte(regs.get(0).getReg())); 
80:	bits.set(1, unsignedFitsInShort(regs.get(1).getReg())); 
Full Snippet Info
7
CodeRank
80:	BitSet bits = new BitSet(3); 
-
82:	bits.set(0, unsignedFitsInByte(regs.get(0).getReg())); 
83:	bits.set(1, unsignedFitsInByte(regs.get(1).getReg())); 
84:	bits.set(2, unsignedFitsInByte(regs.get(2).getReg())); 
Full Snippet Info
7
CodeRank
159:	if (currentlyProcessing.get(PROCESSING_CLASS)) 
-
164:	if (currentlyProcessing.get(PROCESSING_FIELD)) 
-
169:	else if (currentlyProcessing.get(PROCESSING_PARAM)) 
-
174:	else if (currentlyProcessing.get(PROCESSING_METHOD)) 
-
181:	lastProcessing = (BitSet)currentlyProcessing.clone(); 
182:	currentlyProcessing.clear(); 
Full Snippet Info
7
CodeRank
93:	int size = chars.cardinality(); 
94:	boolean containsZero = chars.get(0); 
-
98:	for (int c = chars.nextSetBit(0); c != -1; c = chars.nextSetBit(c + 1)) { 
Full Snippet Info
7
CodeRank
24:	private static final BitSet ESCAPE_CHARACTERS = new BitSet(256); 
-
29:	ESCAPE_CHARACTERS.set('"'); 
30:	ESCAPE_CHARACTERS.set('\\'); 
31:	ESCAPE_CHARACTERS.set('\n'); 
32:	ESCAPE_CHARACTERS.set('\t'); 
Full Snippet Info
7
CodeRank
26:	assert length >= bits.length(); 
-
108:	return (BitSet) bits.clone(); 
-
136:	result.xor(other.asBitSet()); 
Full Snippet Info
7
CodeRank
208:	BitSet methodBitSet = new BitSet(8); 
209:	HexUtil.hexToBits(methodStringToStore,methodBitSet,methodBitSet.size()); 
210:	assertTrue(methodBitSet.cardinality()==0); 
Full Snippet Info
7
CodeRank
409:	x = new BitSet( ly ); 
410:	x.or( yset ); 
411:	x.xor( bitMask ); 
-
413:	if ( x.isEmpty() ) { return 0; } 
Full Snippet Info
7
CodeRank
33:	BitSet a = new BitSet(); 
-
36:	a.set(0); 
37:	a.set(70); 
-
39:	a.and(b); 
40:	if (a.length() != 0) 
Full Snippet Info
7
CodeRank
88:	BitSet bits = new BitSet(1); 
-
90:	bits.set(0, unsignedFitsInByte(regs.get(0).getReg())); 
Full Snippet Info
6
CodeRank