Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

observer pattern java

class Signal extends Observable {

  void setData(byte[] lbData){
    setChanged(); // Positionne son indicateur de changement
    notifyObservers(); // (1) notification
  }
}
Source by fr.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #observer #pattern #java
ADD COMMENT
Topic
Name
9+1 =