Class stl_BloomFilterDS

java.lang.Object
com.jackmeng.stl.stl_BloomFilterDS

public class stl_BloomFilterDS
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.util.BitSet bitset  
    private stl_HashFunction[] hashFxs  
  • Constructor Summary

    Constructors
    Constructor Description
    stl_BloomFilterDS​(int size, int hashes)  
  • Method Summary

    Modifier and Type Method Description
    void add​(java.lang.String value)  
    boolean contains​(java.lang.String value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bitset

      private final java.util.BitSet bitset
    • hashFxs

      private final stl_HashFunction[] hashFxs
  • Constructor Details

    • stl_BloomFilterDS

      public stl_BloomFilterDS​(int size, int hashes)
  • Method Details

    • add

      public void add​(java.lang.String value)
    • contains

      public boolean contains​(java.lang.String value)