![]() |
VOOZH | about |
public int hashCode()Parameters: This method accepts does not accepts any parameter. Return value: This method returns hash code value of the present value or 0 if no value is present. Below programs illustrate hashCode() method: Program 1:
OptionalInt: OptionalInt[253] HashCode value: 253
OptionalInt: OptionalInt.empty HashCode value: 0