Interface IHashCodeImplementation<T>

  • Type Parameters:
    T - The data type for which the hash code should be implemented
    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 IHashCodeImplementation<T>
    Interface to implement for custom hash code implementation. This interface is only used within the HashCodeImplementationRegistry.
    Author:
    Philip Helger
    • Method Detail

      • getHashCode

        int getHashCode​(@Nonnull
                        T aObj)
        Get the hash code for the passed object
        Parameters:
        aObj - The object for which the hash code is to be calculated
        Returns:
        The hash code for this object