Class ObservationToken<T>



  • public final class ObservationToken<T>
    extends java.lang.Object
    Defines a token for an Observer that is currently registered to observe updates
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void cancel()
      Cancels the observation by unregistering the observer and clearing all references, allowing resource cleanup.
      static <T> ObservationToken<T> create(Observable<T> observable, Observer<T> observer, boolean initialUpdate) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • cancel

        public void cancel()
        Cancels the observation by unregistering the observer and clearing all references, allowing resource cleanup.