Class MurmurHash3Parameters

java.lang.Object
com.scurrilous.circe.params.MurmurHash3Parameters
All Implemented Interfaces:
HashParameters

public final class MurmurHash3Parameters extends Object implements HashParameters
Hash parameters for MurmurHash3.
  • Constructor Details

    • MurmurHash3Parameters

      public MurmurHash3Parameters(MurmurHash3Variant variant)
      Constructs a MurmurHash3Parameters with the given variant and a seed value of zero.
      Parameters:
      variant - the variant of the algorithm
    • MurmurHash3Parameters

      public MurmurHash3Parameters(MurmurHash3Variant variant, int seed)
      Constructs a MurmurHash3Parameters with the given variant and seed value.
      Parameters:
      variant - the variant of the algorithm
      seed - the seed value
  • Method Details

    • variant

      public MurmurHash3Variant variant()
      Returns the variant of the hash algorithm.
      Returns:
      the algorithm variant
    • seed

      public int seed()
      Returns the seed value for the hash function.
      Returns:
      the seed value
    • algorithm

      public String algorithm()
      Description copied from interface: HashParameters
      Returns the canonical name of the hash algorithm.
      Specified by:
      algorithm in interface HashParameters
      Returns:
      the name of the hash algorithm