com.holonplatform.core.objects

## Interface HashCodeProvider<T>

- Type Parameters:
    `T` - Object type
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface HashCodeProvider<T>

  Object `hashCode` provider.
  Since:
    5.1.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Optional<Integer>` | `hashCode(T object)` Get the hash code of given object.

- - ### Method Detail

    - #### hashCode

          Optional<Integer> hashCode(T object)

      Get the hash code of given object.

      The provided hash code should follow the same semantic of `Object.hashCode()`.

      Parameters:
        `object` - The object for which to obtain the hash code (may be null)
      Returns:
        The object hash code, or an empty Optional to fallback to the default hash code value

Copyright © 2019 The Holon Platform. All rights reserved.