package waymaker.gen; // Copyright © 2015 Michael Allan. Licence MIT. /** A ding that signifies a change. */ public @ThreadSafe final class Changed implements Ding { private Changed() { source = new ReRinger( this ); } // -------------------------------------------------------------------------------------------------- /** Constructs a Changed and returns a re-ringer that emits it. */ public static ReRinger newReRinger() { return (ReRinger)new Changed().source; } // - D i n g ---------------------------------------------------------------------------------------- public Bell source() { return source; } private final Bell source; }