Class TextHashFunctions.Hash

Enclosing class:
TextHashFunctions

private abstract static class TextHashFunctions.Hash extends RawTextComparator
Base class for any hashCode function to be tested.
  • Field Details

  • Constructor Details

    • Hash

      private Hash()
  • Method Details

    • equals

      public boolean equals(RawText a, int ai, RawText b, int bi)
      Description copied from class: SequenceComparator
      Compare two items to determine if they are equivalent. It is permissible to compare sequence a with itself (by passing a again in position b).
      Specified by:
      equals in class SequenceComparator<RawText>
      Parameters:
      a - the first sequence.
      ai - item of ai to compare.
      b - the second sequence.
      bi - item of bi to compare.
      Returns:
      true if the two items are identical according to this function's equivalence rule.