Creating a hash from several Java string objects

后端 未结 5 1299
情深已故
情深已故 2021-01-17 14:35

What would be the fastest and more robust (in terms of uniqueness) way for implementing a method like

public abstract String hash(String[] values);
         


        
5条回答
  •  自闭症患者
    2021-01-17 14:50

    It doesn't provide a 64 bit hash, but given the title of the question it's probably worth mentioning that since Java 1.7 there is java.util.Objects#hash(Object...).

提交回复
热议问题