Class SubscribeEvent<SRC>

java.lang.Object
org.refcodes.observer.AbstractEvent<SRC>
org.refcodes.observer.SubscribeEvent<SRC>
Type Parameters:
SRC - The type of the observable.
All Implemented Interfaces:
org.refcodes.mixin.SourceAccessor<SRC>, Event<SRC>

public class SubscribeEvent<SRC> extends AbstractEvent<SRC>
An SubscribeEvent is published by an Observable when an observer is being subscribed. An SubscribeEvent provides a observable being the origin of the SubscribeEvent.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor

    org.refcodes.mixin.SourceAccessor.SourceBuilder<SRC extends Object,B extends org.refcodes.mixin.SourceAccessor.SourceBuilder<SRC,B>>, org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new subscribe event.
  • Method Summary

    Methods inherited from class org.refcodes.observer.AbstractEvent

    getSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SubscribeEvent

      public SubscribeEvent(SRC aSource)
      Instantiates a new subscribe event.
      Parameters:
      aSource - The according source (origin).