1 package com.fermod.testdata.serializable;
3 import java.io.Serializable;
4 import java.util.function.BiConsumer;
50 if (!
PersonObject.class.isAssignableFrom(obj.getClass())) {
59 if (this.age != other.
age) {
69 hash = 53 * hash + (this.observedName !=
null ? this.observedName.
hashCode() : 0);
70 hash = 53 * hash + this.
age;
void setName(String name)
Class that wraps a value and gives the utility of registering listeners that will be called after any...
static final long serialVersionUID
boolean equals(Object obj)
boolean equals(Object obj)
PersonObject(String name, int age)
void onNameChanged(BiConsumer< String, String > consumer)
ObservedValue< String > observedName
void set(T value)
Changes the value with the new given one, and notifies all the registered listeners of the change.
T get()
Returns the value that is being observed.