- 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 Summary
Modifier and TypeMethodDescriptionOptional<? extends CharSequence>
Returns anOptional
whose content is aCharSequence
representing a "content hashable" view of the implementation.
-
Method Details
-
contentHashInput
Optional<? extends CharSequence> contentHashInput()Returns anOptional
whose content is aCharSequence
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 aCharSequence
representing a "content hashable" view of the implementation
-