Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-763

Remove BloomFilter constructors that create initial entry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.x
    • None
    • Collection
    • None

    Description

      Bloom Filters have constructors that both define and create an initial entry.   Defining both the collection and adding an initial entry in the constructor is not standard across the java collections. 

      This change is to remove the BloomFilter constructors that produce initial entries.

      So the line

      BloomFilter filter = new BitSetBloomFIlter( aHasher, aShape );

      becomes

      BloomFilter filter = new BitSetBloomFIlter(  aShape );

      filter.merge( aHahser );

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            claude Claude Warren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: