Package rma.util

Class WeakObserver

All Implemented Interfaces:
Observer

public class WeakObserver extends WeakReference implements Observer
An Observer wrapper that is a WeakReference to the real Observer. When the real Observer is de-referenced, then the WeakObserver removes itself from the Observable's list of Observers.
  • Constructor Details

    • WeakObserver

      public WeakObserver(Observer referent)
  • Method Details