Example usage for java.util Observer notify

List of usage examples for java.util Observer notify

Introduction

In this page you can find the example usage for java.util Observer notify.

Prototype

@HotSpotIntrinsicCandidate
public final native void notify();

Source Link

Document

Wakes up a single thread that is waiting on this object's monitor.

Usage

From source file:ca.ualberta.trinkettrader.Inventory.Trinket.Pictures.Picture.java

/**
 * {@inheritDoc}/*  w w w .j  a  v  a 2 s .  c o m*/
 */
@Override
public void notifyObservers() {
    for (Observer observer : observers) {
        observer.notify();
    }
}