Interface Observer<S extends Observable<S>>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Observer<S extends Observable<S>>
A functional interface, instances of it will be attached to an Observable, which will call the update method.
Author:
Abdul
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(S subject)
    Normally checks what data has changed in the object and runs code based on it.
  • Method Details

    • update

      void update(S subject)
      Normally checks what data has changed in the object and runs code based on it.
      Parameters:
      subject - The Observable object that called this method.