Package one.nio.util

Class Hash


  • public class Hash
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int P1  
      private static int P2  
      private static int P3  
      private static int P4  
      private static int P5  
    • Constructor Summary

      Constructors 
      Constructor Description
      Hash()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int murmur3​(byte[] array, int start, int length)  
      static int murmur3​(java.lang.Object obj, long offset, int count)  
      static int murmur3​(java.lang.String s)  
      static int murmur3_final​(int state, int length)  
      static int murmur3_step​(int state, int value)  
      static long twang_mix​(long key)  
      static long twang_unmix​(long key)  
      static int xxhash​(byte[] array, int start, int length)  
      static int xxhash​(java.lang.Object obj, long offset, int count)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Hash

        public Hash()
    • Method Detail

      • twang_mix

        public static long twang_mix​(long key)
      • twang_unmix

        public static long twang_unmix​(long key)
      • murmur3_step

        public static int murmur3_step​(int state,
                                       int value)
      • murmur3_final

        public static int murmur3_final​(int state,
                                        int length)
      • murmur3

        public static int murmur3​(java.lang.String s)
      • murmur3

        public static int murmur3​(java.lang.Object obj,
                                  long offset,
                                  int count)
      • murmur3

        public static int murmur3​(byte[] array,
                                  int start,
                                  int length)
      • xxhash

        public static int xxhash​(java.lang.Object obj,
                                 long offset,
                                 int count)
      • xxhash

        public static int xxhash​(byte[] array,
                                 int start,
                                 int length)