This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
commit 6b0d7c4898b4e78c8fa35f80000d6b2d105e7fbd Author: Gary Gregory <[email protected]> AuthorDate: Sat Jan 16 20:24:31 2021 -0500 Sort methods. --- .../bloomfilter/hasher/StaticHasher.java | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/hasher/StaticHasher.java b/src/main/java/org/apache/commons/collections4/bloomfilter/hasher/StaticHasher.java index b06cf52..eec96d1 100644 --- a/src/main/java/org/apache/commons/collections4/bloomfilter/hasher/StaticHasher.java +++ b/src/main/java/org/apache/commons/collections4/bloomfilter/hasher/StaticHasher.java @@ -91,6 +91,20 @@ public final class StaticHasher implements Hasher { this.values = hasher.values; } + @Override + public HashFunctionIdentity getHashFunctionIdentity() { + return shape.getHashFunctionIdentity(); + } + + /** + * Gets the shape this static hasher was created with. + * + * @return the Shape of this hasher. + */ + public Shape getShape() { + return shape; + } + /** * Gets an iterator of integers that are the bits to enable in the Bloom * filter based on the shape. The iterator will not return the same value multiple @@ -109,20 +123,6 @@ public final class StaticHasher implements Hasher { return Arrays.stream(values).iterator(); } - @Override - public HashFunctionIdentity getHashFunctionIdentity() { - return shape.getHashFunctionIdentity(); - } - - /** - * Gets the shape this static hasher was created with. - * - * @return the Shape of this hasher. - */ - public Shape getShape() { - return shape; - } - /** * Gets the the number of unique values in this hasher. * @return the number of unique values.
