コード例 #1
0
 public boolean isPresent(ByteBuffer key) {
   for (long bucketIndex : getHashBuckets(key)) {
     if (!bitset.fastGet(bucketIndex)) {
       return false;
     }
   }
   return true;
 }
コード例 #2
0
 @Override
 public boolean isPresent(byte[] key, int offset, int length) {
   for (long bucketIndex : getHashBuckets(key, offset, length)) {
     if (!bitset.fastGet(bucketIndex)) {
       return false;
     }
   }
   return true;
 }