OptionalequivalenceDecides key equality by its equals and hash. valueEquivalence honours the
equalsSymbol/hashCodeSymbol protocol; sameValueZeroEquivalence is the default behaviour.
OptionalkeyDerives the primitive key a key is found by; two keys are the same key when their derived keys are SameValueZero-equal. Called once per key per operation, never again for a stored key.
Options for a
HashMap, about its keys. At most one ofkeyandequivalencemay be given; with neither, keys compare with SameValueZero, as in nativeMap.Example