Class CombineWithLatestStreamId<T,​D,​R>

  • Type Parameters:
    T - Type of the stream which will trigger the emitting of a new element
    D - Type of the original data stream
    R - Type of the returned value (= type of the resulting stream)
    All Implemented Interfaces:
    java.io.Serializable, StreamId<R>

    public class CombineWithLatestStreamId<T,​D,​R>
    extends java.lang.Object
    implements StreamId<R>, java.io.Serializable
    Given a data stream and a stream of triggering events, the resulting stream emits as soon as the trigger stream emits. The emitted value is determined by the comining function, and can thus be computed from the emitted value of the triggered stream and the latest emitted item of the data stream. stream at the moment of each triggering event
    See Also:
    CombineWithLatestStreamFactory, Serialized Form
    • Method Detail

      • dataStream

        public StreamId<D> dataStream()
      • triggerStream

        public StreamId<T> triggerStream()
      • combiner

        public java.util.function.BiFunction<T,​D,​R> combiner()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object