Class Murmur3A

java.lang.Object
org.greenrobot.essentials.hash.Murmur3A
All Implemented Interfaces:
Checksum

public class Murmur3A extends Object implements Checksum
Murmur3A (murmurhash3_x86_32)
  • Field Details

    • primitiveArrayUtils

      private static PrimitiveArrayUtils primitiveArrayUtils
    • C1

      private static final int C1
      See Also:
    • C2

      private static final int C2
      See Also:
    • seed

      private final int seed
    • h1

      private int h1
    • length

      private int length
    • partialK1

      private int partialK1
    • partialK1Pos

      private int partialK1Pos
  • Constructor Details

    • Murmur3A

      public Murmur3A()
    • Murmur3A

      public Murmur3A(int seed)
  • Method Details

    • update

      public void update(int b)
      Specified by:
      update in interface Checksum
    • update

      public void update(byte[] b, int off, int len)
      Specified by:
      update in interface Checksum
    • update

      public void update(byte[] b)
      Specified by:
      update in interface Checksum
    • updateShort

      public void updateShort(short value)
    • updateShort

      public void updateShort(short... values)
    • updateInt

      public void updateInt(int value)
    • updateInt

      public void updateInt(int... values)
    • updateLong

      public void updateLong(long value)
    • updateLong

      public void updateLong(long... values)
    • updateFloat

      public void updateFloat(float number)
    • updateDouble

      public void updateDouble(double number)
    • updateBoolean

      public void updateBoolean(boolean value)
      updates a byte with 0 for false and 1 for true
    • applyK1

      private void applyK1(int k1)
    • getValue

      public long getValue()
      Specified by:
      getValue in interface Checksum
    • reset

      public void reset()
      Specified by:
      reset in interface Checksum