How do I calculate a good hash code for a list of strings?

后端 未结 11 1590
我寻月下人不归
我寻月下人不归 2020-12-01 02:34

Background:

  • I have a short list of strings.
  • The number of strings is not always the same, but are nearly always of the order of a “handful”
  • I
11条回答
  •  日久生厌
    2020-12-01 03:27

    Let's solve your root problem.

    Don't use a hashcode. Just add a integer primary key for each String

提交回复
热议问题