int () { int PRIME = true; int result = 1; int result = result * 59 + Float.floatToIntBits(this.someFloatField); Object $someIntField = this.getSomeIntField(); result = result * 59 + ($someIntField == null ? 43 : $someIntField.hashCode()); Object $someStringField = this.getSomeStringField(); result = result * 59 + ($someStringField == null ? 43 : $someStringField.hashCode()); return result; }