Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

hashcode

Lombok.hashCode issue with “java.lang.StackOverflowError: null”

May 20, 2023 by Tarik

You have a circular dependency between book and bookdetails. You probably need to exclude book from BookDetail or bookDetail from Book. You can add @EqualsAndHashCode(exclude=”book”). For more information, see the EqualsAndHashCode documentation.

Categories hashcode Tags hashcode, lombok Leave a comment

Objects.hash() vs Objects.hashCode(), clarification needed

February 13, 2023 by Tarik

See the documentation for hashCode and hash. hash takes Object… while hashCode takes Object. The example given is: @Override public int hashCode() { return Objects.hash(x, y, z); } Objects.hash(Object… values) should be used in cases when you want a hash of a sequence of objects, e.g. when defining your own hashCode method and want a … Read more

Categories hashcode Tags hashcode, java-7 Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa