Class AggregateAndEvent<AID extends AggregateId,​A extends Aggregate<A,​AID>,​E extends Event<AID>>

  • Type Parameters:
    AID - Aggregate ID type / 集約IDの型
    A - Aggregate type / 集約の型
    E - Event type / イベントの型

    public final class AggregateAndEvent<AID extends AggregateId,​A extends Aggregate<A,​AID>,​E extends Event<AID>>
    extends java.lang.Object
    This is a class for representing aggregates and events. / 集約とイベントを表すためのクラスです。
    • Constructor Summary

      Constructors 
      Constructor Description
      AggregateAndEvent​(A aggregate, E event)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      A getAggregate()
      Returns the aggregate.
      E getEvent()
      Returns the event.
      • Methods inherited from class java.lang.Object

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

      • AggregateAndEvent

        public AggregateAndEvent​(@Nonnull
                                 A aggregate,
                                 @Nonnull
                                 E event)
        Creates a new instance. / 新しいインスタンスを生成します。
        Parameters:
        aggregate - aggregate / 集約
        event - event / イベント
    • Method Detail

      • getAggregate

        @Nonnull
        public A getAggregate()
        Returns the aggregate. / 集約を返します。
        Returns:
        aggregate / 集約
      • getEvent

        @Nonnull
        public E getEvent()
        Returns the event. / イベントを返します。
        Returns:
        event / イベント