Skip to content

Commit

Permalink
cardinality should be an int
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalv authored and egonw committed Jul 28, 2012
1 parent 8597974 commit 9891a77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -44,7 +44,7 @@ public BitSetFingerprint(int size) {
}

@Override
public long cardinality() {
public int cardinality() {
return bitset.cardinality();
}

Expand Down
Expand Up @@ -34,7 +34,7 @@ public interface IBitFingerprint {
/**
* @return the number of bits set to true in the fingerprint.
*/
public long cardinality();
public int cardinality();

/**
* @return the size of the fingerprint.
Expand Down
Expand Up @@ -64,7 +64,7 @@ public IntArrayFingerprint(IBitFingerprint fingerprint) {
}

@Override
public long cardinality() {
public int cardinality() {
return trueBits.length;
}

Expand Down

0 comments on commit 9891a77

Please sign in to comment.