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

Remove BloomFilter constructors that create initial entry

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.x
    • Fix Version/s: None
    • Component/s: Collection
    • Labels:
      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

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

              Dates

              • Created:
                Updated: