Package ghidra.program.model.correlate

# Class Hash

java.lang.Object
ghidra.program.model.correlate.Hash

All Implemented Interfaces:
  `Comparable<Hash>`

public class Hash extends Object implements Comparable<Hash>
This encodes the main hash value for an n-gram, and the number of Instructions hashed

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `ALTERNATE_SEED`
  `static final int`
  `SEED`
  `protected int`
  `size`
  `protected int`
  `value`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Hash(int val, int sz)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compareTo(Hash o)`
  `boolean`
  `equals(Object obj)`
  `int`
  `hashCode()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### SEED

    public static final int SEED
    See Also:
      - Constant Field Values

  - ### ALTERNATE_SEED

    public static final int ALTERNATE_SEED
    See Also:
      - Constant Field Values

  - ### value

    protected int value

  - ### size

    protected int size

- ## Constructor Details

  - ### Hash

    public Hash(int val, int sz)

- ## Method Details

  - ### compareTo

    public int compareTo(Hash o)
    Specified by:
      `compareTo` in interface `Comparable<Hash>`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`