@Override public boolean equals(Object o) { (Stuff generated by your IDE) } @Override public int hashCode() { int result = name.hashCode(); result = 31 * result + age; return result; }
class HTML { var value = "" fun body(value: String) { this.value = value } } fun html(init: HTML.() -> Unit) = HTML().apply { init() } html { body("Hello world") }