One thing to look at for Java would be auto/value (Immutable value-type code generation for Java 1.6+ by Google)
https://github.com/google/auto/tree/master/value
Not the same as what you reference in the other languages, but useful if you find yourself dealing with it in java.