Class Pattern8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>

  • Type Parameters:
    T1 - the first value type
    T2 - the second value type
    T3 - the third value type
    T4 - the fourth value type
    T5 - the fifth value type
    T6 - the sixth value type
    T7 - the sevent value type
    T8 - the eighth value type

    public final class Pattern8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>
    extends java.lang.Object
    Represents a join pattern over observable sequences.
    • Method Detail

      • and

        public <T9> Pattern9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> and​(Observable<T9> other)
        Creates a pattern that matches when all eight observable sequences have an available element.
        Type Parameters:
        T9 - the value type of the extra Observable
        Parameters:
        other - Observable sequence to match with the seven previous sequences.
        Returns:
        Pattern object that matches when all observable sequences have an available element.
      • then

        public <R> Plan<R> then​(Function8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​R> selector)
        Matches when all observable sequences have an available element and projects the elements by invoking the selector function.
        Type Parameters:
        R - the result type
        Parameters:
        selector - the function that will be invoked for elements in the source sequences.
        Returns:
        the plan for the matching
        Throws:
        java.lang.NullPointerException - if selector is null