java observable to observer
setChanged();
notifyObservers(object_to_send_to_observer);
java observable to observer
setChanged();
notifyObservers(object_to_send_to_observer);
observer pattern java
class Signal extends Observable {
void setData(byte[] lbData){
setChanged(); // Positionne son indicateur de changement
notifyObservers(); // (1) notification
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us