Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-411

HashCodeBuilder: expose typed hashing methods

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3
    • Patch Needed
    • lang.builder.*
    • None

    Description

      HashCodeBuilder encapsulates the good advice of Joshua Bloch. He details how each java.lang type should be hashed. I want to use those too ... but without reflection. Please expose those as static methods:

      hashInt, hashBoolean, etc.
      They should take two parameters: the field value, and the hash multiplier value.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pbenedict Paul Benedict
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: