@Test public void testContains() throws Exception { assertFalse(new BitMapCharSet().contains(' ')); assertFalse(new BitMapCharSet(0).contains(' ')); assertFalse(new BitMapCharSet(0, 0).contains(' ')); assertFalse(new BitMapCharSet(0, 0, 0).contains(' ')); assertTrue(new BitMapCharSet(0, 1).contains(' ')); assertTrue(new BitMapCharSet(0, 1, 0).contains(' ')); assertTrue(new BitMapCharSet(0, 0x80000000).contains((char) 63)); assertTrue(new BitMapCharSet(0, 0x80000000, 0).contains((char) 63)); assertFalse(new BitMapCharSet(0, 0x80000000, 0).contains((char) 62)); assertFalse(new BitMapCharSet(0, 0x80000000, 0).contains((char) 64)); }
@Override public boolean contains(char c) { return (c < mLength) && (mBitmap[c >>> 5] & (1 << (c & 0x1F))) != 0; }
BitMapCharSet implements CharSet { @Override public boolean contains(char c) { return (c < mLength) && (mBitmap[c >>> 5] & (1 << (c & 0x1F))) != 0; } }
BitMapCharSet implements CharSet { @Override public boolean contains(char c) { return (c < mLength) && (mBitmap[c >>> 5] & (1 << (c & 0x1F))) != 0; } BitMapCharSet(int... bitmap); }
BitMapCharSet implements CharSet { @Override public boolean contains(char c) { return (c < mLength) && (mBitmap[c >>> 5] & (1 << (c & 0x1F))) != 0; } BitMapCharSet(int... bitmap); @Override boolean contains(char c); }
BitMapCharSet implements CharSet { @Override public boolean contains(char c) { return (c < mLength) && (mBitmap[c >>> 5] & (1 << (c & 0x1F))) != 0; } BitMapCharSet(int... bitmap); @Override boolean contains(char c);  }