Interface ContentHashable

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

An interface whose implementations can return a CharSequence for content-based hashing.
Author:
Laird Nelson
  • Method Details

    • contentHashInput

      Returns an Optional whose content is a CharSequence representing a "content hashable" view of the implementation.

      If the returned Optional is empty, no "content hashable" view of the implementation exists, and content hashing of this implementation may lead to undefined behavior.

      Implementations of this method must produce a determinate value, or undefined behavior will result.

      Returns:
      an Optional whose content is a CharSequence representing a "content hashable" view of the implementation