Kotlin vs Java

Lazy
Java
private String value;

public synchronized String getValue() {
    if (value == null) {
        value = "Something";
    }
    return value;
}
Kotlin
val lazyValue: String by lazy {
    "Something"
}
Map
Java
final ObjectMapper mapper = new ObjectMapper(); // jackson's objectmapper
final MyPojo pojo = mapper.convertValue(map, MyPojo.class);

// https://stackoverflow.com/a/16430704/2441104
Kotlin
class User(val map: Map<String, Any?>) {
    val name: String by map
    val age: Int     by map
}
Observable
Java
public class PCLNewsAgency {
    private String news;

    private PropertyChangeSupport support;

    public PCLNewsAgency() {
        support = new PropertyChangeSupport(this);
    }

    public void addPropertyChangeListener(PropertyChangeListener pcl) {
        support.addPropertyChangeListener(pcl);
    }

    public void removePropertyChangeListener(PropertyChangeListener pcl) {
        support.removePropertyChangeListener(pcl);
    }

    public void setNews(String value) {
        support.firePropertyChange("news", this.news, value);
        this.news = value;
    }
}
Kotlin
class User {
    var name: String by Delegates.observable("") {
        prop, old, new ->
        println("$old -> $new")
    }
}