Skip to content

Instantly share code, notes, and snippets.

@codenameone
Last active Jul 21, 2017
Embed
What would you like to do?
public final DoubleProperty<Length> metre = new DoubleProperty<>("metre");
public final DoubleProperty<Length> km = new DoubleProperty<>("km") {
public Double get() {
return meter.get() / 0.001;
}
public Length set(Double d) {
return meter.set(d * 1000);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment