Interface PageWithPositionEqualsAndHash

  • All Known Implementing Classes:
    SimplePageWithPositionEqualsAndHash

    public interface PageWithPositionEqualsAndHash
    Equals and hash evaluated at the specified page positions. Implementations need to be hash table friendly.

    Note: this usage is likely to be megamorphic, so use at your own risk!

    • Method Detail

      • equals

        boolean equals​(Page left,
                       int leftPosition,
                       Page right,
                       int rightPosition)
      • hashCode

        long hashCode​(Page page,
                      int position)