Package dev.jlet

Class JLet

java.lang.Object
dev.jlet.JLet

public final class JLet extends Object
JLet functions.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <R> R
    it(ThrowingSupplier<? extends R,?> block)
    Calls the specified function block and returns its result.
    static <T1, T2> T1
    it(T1 t1, T2 t2, ThrowingConsumer2<? super T1,? super T2,?> block)
    Calls the specified function block with the given values and returns the first value.
    static <T1, T2, T3>
    T1
    it(T1 t1, T2 t2, T3 t3, ThrowingConsumer3<? super T1,? super T2,? super T3,?> block)
    Calls the specified function block with the given values and returns the first value.
    static <T1, T2, T3, T4>
    T1
    it(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingConsumer4<? super T1,? super T2,? super T3,? super T4,?> block)
    Calls the specified function block with the given values and returns the first value.
    static <T1, T2, T3, T4, T5>
    T1
    it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5,?> block)
    Calls the specified function block with the given values and returns the first value.
    static <T1, T2, T3, T4, T5, T6>
    T1
    it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,?> block)
    Calls the specified function block with the given values and returns the first value.
    static <T1, T2, T3, T4, T5, T6, T7>
    T1
    it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,?> block)
    Calls the specified function block with the given values and returns the first value.
    static <T1, T2, T3, T4, T5, T6, T7, T8>
    T1
    it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,?> block)
    Calls the specified function block with the given values and returns the first value.
    static <T> T
    it(T t, ThrowingConsumer<? super T,?> block)
    Calls the specified function block with the given value and returns this value.
    static <T1, T2, R>
    R
    let(T1 t1, T2 t2, ThrowingFunction2<? super T1,? super T2,? extends R,?> block)
    Calls the specified function block with the given values and returns its result.
    static <T1, T2, T3, R>
    R
    let(T1 t1, T2 t2, T3 t3, ThrowingFunction3<? super T1,? super T2,? super T3,? extends R,?> block)
    Calls the specified function block with the given values and returns its result.
    static <T1, T2, T3, T4, R>
    R
    let(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingFunction4<? super T1,? super T2,? super T3,? super T4,? extends R,?> block)
    Calls the specified function block with the given values and returns its result.
    static <T1, T2, T3, T4, T5, R>
    R
    let(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingFunction5<? super T1,? super T2,? super T3,? super T4,? super T5,? extends R,?> block)
    Calls the specified function block with the given values and returns its result.
    static <T1, T2, T3, T4, T5, T6, R>
    R
    let(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingFunction6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? extends R,?> block)
    Calls the specified function block with the given values and returns its result.
    static <T1, T2, T3, T4, T5, T6, T7, R>
    R
    let(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingFunction7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? extends R,?> block)
    Calls the specified function block with the given values and returns its result.
    static <T1, T2, T3, T4, T5, T6, T7, T8, R>
    R
    let(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingFunction8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R,?> block)
    Calls the specified function block with the given values and returns its result.
    static <T, R> R
    let(T t, ThrowingFunction<? super T,? extends R,?> block)
    Calls the specified function block with the given value and returns its result.
    static void
    Calls the specified function block.
    static boolean
    Calls the specified function block and returns its boolean result.
    static <T1, T2> boolean
    test(T1 t1, T2 t2, ThrowingPredicate2<? super T1,? super T2,?> block)
    Calls the specified function block with the given values and returns its boolean result.
    static <T1, T2, T3>
    boolean
    test(T1 t1, T2 t2, T3 t3, ThrowingPredicate3<? super T1,? super T2,? super T3,?> block)
    Calls the specified function block with the given values and returns its boolean result.
    static <T1, T2, T3, T4>
    boolean
    test(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingPredicate4<? super T1,? super T2,? super T3,? super T4,?> block)
    Calls the specified function block with the given values and returns its boolean result.
    static <T1, T2, T3, T4, T5>
    boolean
    test(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingPredicate5<? super T1,? super T2,? super T3,? super T4,? super T5,?> block)
    Calls the specified function block with the given values and returns its boolean result.
    static <T1, T2, T3, T4, T5, T6>
    boolean
    test(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingPredicate6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,?> block)
    Calls the specified function block with the given values and returns its boolean result.
    static <T1, T2, T3, T4, T5, T6, T7>
    boolean
    test(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingPredicate7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,?> block)
    Calls the specified function block with the given values and returns its boolean result.
    static <T1, T2, T3, T4, T5, T6, T7, T8>
    boolean
    test(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingPredicate8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,?> block)
    Calls the specified function block with the given values and returns its boolean result.
    static <T> boolean
    test(T t, ThrowingPredicate<? super T,?> block)
    Calls the specified function block with the given values and returns its boolean result.
    static <T1, T2> void
    with(T1 t1, T2 t2, ThrowingConsumer2<? super T1,? super T2,?> block)
    Calls the specified function block with the given values.
    static <T1, T2, T3>
    void
    with(T1 t1, T2 t2, T3 t3, ThrowingConsumer3<? super T1,? super T2,? super T3,?> block)
    Calls the specified function block with the given values.
    static <T1, T2, T3, T4>
    void
    with(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingConsumer4<? super T1,? super T2,? super T3,? super T4,?> block)
    Calls the specified function block with the given values.
    static <T1, T2, T3, T4, T5>
    void
    with(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5,?> block)
    Calls the specified function block with the given values.
    static <T1, T2, T3, T4, T5, T6>
    void
    with(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,?> block)
    Calls the specified function block with the given values.
    static <T1, T2, T3, T4, T5, T6, T7>
    void
    with(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,?> block)
    Calls the specified function block with the given values.
    static <T1, T2, T3, T4, T5, T6, T7, T8>
    void
    with(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,?> block)
    Calls the specified function block with the given values.
    static <T> void
    with(T t, ThrowingConsumer<? super T,?> block)
    Calls the specified function block with the given value.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • it

      public static <R> R it(ThrowingSupplier<? extends R,?> block)
      Calls the specified function block and returns its result.
      Type Parameters:
      R - type of the function block result
      Parameters:
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • it

      public static <T> T it(T t, ThrowingConsumer<? super T,?> block)
      Calls the specified function block with the given value and returns this value.
      Type Parameters:
      T - type of the value
      Parameters:
      t - the value
      block - the function block
      Returns:
      value
      Throws:
      NullPointerException - if block arg is null
    • it

      public static <T1, T2> T1 it(T1 t1, T2 t2, ThrowingConsumer2<? super T1,? super T2,?> block)
      Calls the specified function block with the given values and returns the first value.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      Parameters:
      t1 - the first value
      t2 - the second value
      block - the function block
      Returns:
      first value
      Throws:
      NullPointerException - if block arg is null
    • it

      public static <T1, T2, T3> T1 it(T1 t1, T2 t2, T3 t3, ThrowingConsumer3<? super T1,? super T2,? super T3,?> block)
      Calls the specified function block with the given values and returns the first value.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      block - the function block
      Returns:
      first value
      Throws:
      NullPointerException - if block arg is null
    • it

      public static <T1, T2, T3, T4> T1 it(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingConsumer4<? super T1,? super T2,? super T3,? super T4,?> block)
      Calls the specified function block with the given values and returns the first value.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      block - the function block
      Returns:
      first value
      Throws:
      NullPointerException - if block arg is null
    • it

      public static <T1, T2, T3, T4, T5> T1 it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5,?> block)
      Calls the specified function block with the given values and returns the first value.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      block - the function block
      Returns:
      first value
      Throws:
      NullPointerException - if block arg is null
    • it

      public static <T1, T2, T3, T4, T5, T6> T1 it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,?> block)
      Calls the specified function block with the given values and returns the first value.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      block - the function block
      Returns:
      first value
      Throws:
      NullPointerException - if block arg is null
    • it

      public static <T1, T2, T3, T4, T5, T6, T7> T1 it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,?> block)
      Calls the specified function block with the given values and returns the first value.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      T7 - type of the seventh value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      t7 - the seventh value
      block - the function block
      Returns:
      first value
      Throws:
      NullPointerException - if block arg is null
    • it

      public static <T1, T2, T3, T4, T5, T6, T7, T8> T1 it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,?> block)
      Calls the specified function block with the given values and returns the first value.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      T7 - type of the seventh value
      T8 - type of the eighth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      t7 - the seventh value
      t8 - the eighth value
      block - the function block
      Returns:
      first value
      Throws:
      NullPointerException - if block arg is null
    • let

      public static <T, R> R let(T t, ThrowingFunction<? super T,? extends R,?> block)
      Calls the specified function block with the given value and returns its result.
      Type Parameters:
      T - type of the value
      R - type of the function block result
      Parameters:
      t - the value
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • let

      public static <T1, T2, R> R let(T1 t1, T2 t2, ThrowingFunction2<? super T1,? super T2,? extends R,?> block)
      Calls the specified function block with the given values and returns its result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      R - type of the function block result
      Parameters:
      t1 - the first value
      t2 - the second value
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • let

      public static <T1, T2, T3, R> R let(T1 t1, T2 t2, T3 t3, ThrowingFunction3<? super T1,? super T2,? super T3,? extends R,?> block)
      Calls the specified function block with the given values and returns its result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      R - type of the function block result
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • let

      public static <T1, T2, T3, T4, R> R let(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingFunction4<? super T1,? super T2,? super T3,? super T4,? extends R,?> block)
      Calls the specified function block with the given values and returns its result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      R - type of the function block result
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • let

      public static <T1, T2, T3, T4, T5, R> R let(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingFunction5<? super T1,? super T2,? super T3,? super T4,? super T5,? extends R,?> block)
      Calls the specified function block with the given values and returns its result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      R - type of the function block result
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • let

      public static <T1, T2, T3, T4, T5, T6, R> R let(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingFunction6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? extends R,?> block)
      Calls the specified function block with the given values and returns its result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      R - type of the function block result
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • let

      public static <T1, T2, T3, T4, T5, T6, T7, R> R let(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingFunction7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? extends R,?> block)
      Calls the specified function block with the given values and returns its result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      T7 - type of the seventh value
      R - type of the function block result
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      t7 - the seventh value
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • let

      public static <T1, T2, T3, T4, T5, T6, T7, T8, R> R let(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingFunction8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R,?> block)
      Calls the specified function block with the given values and returns its result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      T7 - type of the seventh value
      T8 - type of the eighth value
      R - type of the function block result
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      t7 - the seventh value
      t8 - the eighth value
      block - the function block
      Returns:
      function block result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static boolean test(ThrowingBooleanSupplier<?> block)
      Calls the specified function block and returns its boolean result.
      Parameters:
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static <T> boolean test(T t, ThrowingPredicate<? super T,?> block)
      Calls the specified function block with the given values and returns its boolean result.
      Type Parameters:
      T - type of the value
      Parameters:
      t - the sixth value
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static <T1, T2> boolean test(T1 t1, T2 t2, ThrowingPredicate2<? super T1,? super T2,?> block)
      Calls the specified function block with the given values and returns its boolean result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      Parameters:
      t1 - the first value
      t2 - the second value
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static <T1, T2, T3> boolean test(T1 t1, T2 t2, T3 t3, ThrowingPredicate3<? super T1,? super T2,? super T3,?> block)
      Calls the specified function block with the given values and returns its boolean result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static <T1, T2, T3, T4> boolean test(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingPredicate4<? super T1,? super T2,? super T3,? super T4,?> block)
      Calls the specified function block with the given values and returns its boolean result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static <T1, T2, T3, T4, T5> boolean test(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingPredicate5<? super T1,? super T2,? super T3,? super T4,? super T5,?> block)
      Calls the specified function block with the given values and returns its boolean result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static <T1, T2, T3, T4, T5, T6> boolean test(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingPredicate6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,?> block)
      Calls the specified function block with the given values and returns its boolean result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static <T1, T2, T3, T4, T5, T6, T7> boolean test(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingPredicate7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,?> block)
      Calls the specified function block with the given values and returns its boolean result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      T7 - type of the seventh value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      t7 - the seventh value
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • test

      public static <T1, T2, T3, T4, T5, T6, T7, T8> boolean test(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingPredicate8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,?> block)
      Calls the specified function block with the given values and returns its boolean result.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      T7 - type of the seventh value
      T8 - type of the eighth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      t7 - the seventh value
      t8 - the eighth value
      block - the function block
      Returns:
      function block boolean result
      Throws:
      NullPointerException - if block arg is null
    • run

      public static void run(ThrowingRunnable<?> block)
      Calls the specified function block.
      Parameters:
      block - the function block
      Throws:
      NullPointerException - if block arg is null
    • with

      public static <T> void with(T t, ThrowingConsumer<? super T,?> block)
      Calls the specified function block with the given value.
      Type Parameters:
      T - type of the value
      Parameters:
      t - the value
      block - the function block
      Throws:
      NullPointerException - if block arg is null
    • with

      public static <T1, T2> void with(T1 t1, T2 t2, ThrowingConsumer2<? super T1,? super T2,?> block)
      Calls the specified function block with the given values.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      Parameters:
      t1 - the first value
      t2 - the second value
      block - the function block
      Throws:
      NullPointerException - if block arg is null
    • with

      public static <T1, T2, T3> void with(T1 t1, T2 t2, T3 t3, ThrowingConsumer3<? super T1,? super T2,? super T3,?> block)
      Calls the specified function block with the given values.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      block - the function block
      Throws:
      NullPointerException - if block arg is null
    • with

      public static <T1, T2, T3, T4> void with(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingConsumer4<? super T1,? super T2,? super T3,? super T4,?> block)
      Calls the specified function block with the given values.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      block - the function block
      Throws:
      NullPointerException - if block arg is null
    • with

      public static <T1, T2, T3, T4, T5> void with(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5,?> block)
      Calls the specified function block with the given values.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      block - the function block
      Throws:
      NullPointerException - if block arg is null
    • with

      public static <T1, T2, T3, T4, T5, T6> void with(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,?> block)
      Calls the specified function block with the given values.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      block - the function block
      Throws:
      NullPointerException - if block arg is null
    • with

      public static <T1, T2, T3, T4, T5, T6, T7> void with(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,?> block)
      Calls the specified function block with the given values.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      T7 - type of the seventh value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      t7 - the seventh value
      block - the function block
      Throws:
      NullPointerException - if block arg is null
    • with

      public static <T1, T2, T3, T4, T5, T6, T7, T8> void with(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,?> block)
      Calls the specified function block with the given values.
      Type Parameters:
      T1 - type of the first value
      T2 - type of the second value
      T3 - type of the third value
      T4 - type of the fourth value
      T5 - type of the fifth value
      T6 - type of the sixth value
      T7 - type of the seventh value
      T8 - type of the eighth value
      Parameters:
      t1 - the first value
      t2 - the second value
      t3 - the third value
      t4 - the fourth value
      t5 - the fifth value
      t6 - the sixth value
      t7 - the seventh value
      t8 - the eighth value
      block - the function block
      Throws:
      NullPointerException - if block arg is null