Eliminate extra lines.
This commit is contained in:
parent
a3e2ea2443
commit
28b381008e
|
@ -273,5 +273,4 @@ public abstract class AbstractBloomFilter implements BloomFilter {
|
|||
}
|
||||
return BitSet.valueOf(result).cardinality();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -115,7 +115,6 @@ public class BitSetBloomFilter extends AbstractBloomFilter {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void merge(final Hasher hasher) {
|
||||
verifyHasher(hasher);
|
||||
|
@ -127,7 +126,6 @@ public class BitSetBloomFilter extends AbstractBloomFilter {
|
|||
return bitSet.toString();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int xorCardinality(final BloomFilter other) {
|
||||
if (other instanceof BitSetBloomFilter) {
|
||||
|
@ -138,5 +136,4 @@ public class BitSetBloomFilter extends AbstractBloomFilter {
|
|||
}
|
||||
return super.xorCardinality(other);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -121,8 +121,4 @@ public interface BloomFilter {
|
|||
* @return the cardinality of the result of {@code( this XOR other )}
|
||||
*/
|
||||
int xorCardinality(BloomFilter other);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@ import org.apache.commons.collections4.bloomfilter.hasher.Hasher;
|
|||
import org.apache.commons.collections4.bloomfilter.hasher.Shape;
|
||||
import org.apache.commons.collections4.bloomfilter.hasher.StaticHasher;
|
||||
|
||||
|
||||
/**
|
||||
* A counting Bloom filter.
|
||||
* This Bloom filter maintains a count of the number of times a bit has been
|
||||
|
|
|
@ -139,5 +139,4 @@ public class HasherBloomFilter extends AbstractBloomFilter {
|
|||
hasher.getBits(getShape()));
|
||||
this.hasher = new StaticHasher(iter, getShape());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -69,7 +69,6 @@ public final class SetOperations {
|
|||
return estimateSize(first) - estimateUnionSize(first,second) + estimateSize(second);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Estimates the number of items in the Bloom filter based on the shape and the number
|
||||
* of bits that are enabled.
|
||||
|
|
|
@ -176,5 +176,4 @@ public class DynamicHasher implements Hasher {
|
|||
public boolean isEmpty() {
|
||||
return buffers.isEmpty();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@ package org.apache.commons.collections4.bloomfilter.hasher;
|
|||
*/
|
||||
public interface HashFunction extends HashFunctionIdentity {
|
||||
|
||||
|
||||
/**
|
||||
* Applies the hash function to the buffer.
|
||||
*
|
||||
|
@ -32,5 +31,4 @@ public interface HashFunction extends HashFunctionIdentity {
|
|||
* @return the long value of the hash.
|
||||
*/
|
||||
long apply(byte[] buffer, int seed);
|
||||
|
||||
}
|
||||
|
|
|
@ -157,5 +157,4 @@ public interface HashFunctionIdentity {
|
|||
* @return signedness of this function.
|
||||
*/
|
||||
Signedness getSignedness();
|
||||
|
||||
}
|
||||
|
|
|
@ -84,5 +84,4 @@ public final class HashFunctionIdentityImpl implements HashFunctionIdentity {
|
|||
public Signedness getSignedness() {
|
||||
return signedness;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ package org.apache.commons.collections4.bloomfilter.hasher;
|
|||
|
||||
import java.util.PrimitiveIterator;
|
||||
|
||||
|
||||
/**
|
||||
* The class that performs hashing.
|
||||
* <p>
|
||||
|
|
|
@ -108,5 +108,4 @@ public final class MD5Cyclic implements HashFunction {
|
|||
public Signedness getSignedness() {
|
||||
return Signedness.SIGNED;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -53,7 +53,6 @@ public final class Murmur128x86Cyclic implements HashFunction {
|
|||
signature = apply(HashFunctionIdentity.prepareSignatureBuffer(this), 0);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public long apply(final byte[] buffer, final int seed) {
|
||||
if (parts == null || seed == 0) {
|
||||
|
@ -88,5 +87,4 @@ public final class Murmur128x86Cyclic implements HashFunction {
|
|||
public Signedness getSignedness() {
|
||||
return Signedness.SIGNED;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ import java.util.Arrays;
|
|||
import org.apache.commons.collections4.bloomfilter.hasher.HashFunction;
|
||||
import org.apache.commons.collections4.bloomfilter.hasher.HashFunctionIdentity;
|
||||
|
||||
|
||||
/**
|
||||
* An implementation of HashFunction that
|
||||
* performs {@code Objects.hash} hashing using a signed iterative method.
|
||||
|
|
Loading…
Reference in New Issue