# Uses of Class
org.apache.commons.collections4.bloomfilter.Shape

Packages that use Shape
Package
Description
org.apache.commons.collections4.bloomfilter
Implements Bloom filter classes and interfaces.

- ## Uses of Shape in org.apache.commons.collections4.bloomfilter

  Methods in org.apache.commons.collections4.bloomfilter that return Shape
  Modifier and Type
  Method
  Description
  `static Shape`
  Shape.`fromKM(int numberOfHashFunctions, int numberOfBits)`
  Constructs a filter configuration with the specified number of hashFunctions (`k`) and bits (`m`).
  `static Shape`
  Shape.`fromNM(int numberOfItems, int numberOfBits)`
  Constructs a filter configuration with the specified number of items (`n`) and bits (`m`).
  `static Shape`
  Shape.`fromNMK(int numberOfItems, int numberOfBits, int numberOfHashFunctions)`
  Constructs a filter configuration with the specified number of items, bits and hash functions.
  `static Shape`
  Shape.`fromNP(int numberOfItems, double probability)`
  Constructs a filter configuration with the specified number of items (`n`) and desired false-positive probability (`p`).
  `static Shape`
  Shape.`fromPMK(double probability, int numberOfBits, int numberOfHashFunctions)`
  Constructs a filter configuration with a desired false-positive probability (`p`) and the specified number of bits (`m`) and hash functions (`k`).
  `Shape`
  ArrayCountingBloomFilter.`getShape()`
  `Shape`
  BloomFilter.`getShape()`
  Gets the shape that was used when the filter was built.
  `final Shape`
  LayeredBloomFilter.`getShape()`
  `Shape`
  SimpleBloomFilter.`getShape()`
  `Shape`
  SparseBloomFilter.`getShape()`
  `Shape`
  WrappedBloomFilter.`getShape()`
  Methods in org.apache.commons.collections4.bloomfilter with parameters of type Shape
  Modifier and Type
  Method
  Description
  `static IntPredicate`
  IndexFilter.`create(Shape shape, IntPredicate consumer)`
  Creates an instance optimized for the specified shape.
  `IndexExtractor`
  EnhancedDoubleHasher.`indices(Shape shape)`
  `IndexExtractor`
  Hasher.`indices(Shape shape)`
  Creates an IndexExtractor for this hasher based on the Shape.
  Constructors in org.apache.commons.collections4.bloomfilter with parameters of type Shape
  Modifier
  Constructor
  Description
  ``
  `ArrayCountingBloomFilter(Shape shape)`
  Constructs an empty counting Bloom filter with the specified shape.
  ``
  `LayeredBloomFilter(Shape shape, LayerManager<T> layerManager)`
  Constructs a new instance.
  ``
  `SimpleBloomFilter(Shape shape)`
  Creates an empty instance.
  ``
  `SparseBloomFilter(Shape shape)`
  Constructs an empty BitSetBloomFilter.