Answers for "java observable example code"

2

java observable to observer

setChanged();
notifyObservers(object_to_send_to_observer);
Posted by: Guest on March-03-2020
1

observer pattern java

class Signal extends Observable {

  void setData(byte[] lbData){
    setChanged(); // Positionne son indicateur de changement
    notifyObservers(); // (1) notification
  }
}
Posted by: Guest on October-13-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language