@SuppressWarnings({"unchecked", "rawtypes"}) @Test(expected = NullPointerException.class) public void function9Fail() throws Exception { Function9 function9 = null; Functions.toFunction(function9); }
public static <T1, T2, R> Function<Object[], R> toFunction(final BiFunction<? super T1, ? super T2, ? extends R> f) { ObjectHelper.requireNonNull(f, "f is null"); return new Array2Func<T1, T2, R>(f); }
Functions { public static <T1, T2, R> Function<Object[], R> toFunction(final BiFunction<? super T1, ? super T2, ? extends R> f) { ObjectHelper.requireNonNull(f, "f is null"); return new Array2Func<T1, T2, R>(f); } }
Functions { public static <T1, T2, R> Function<Object[], R> toFunction(final BiFunction<? super T1, ? super T2, ? extends R> f) { ObjectHelper.requireNonNull(f, "f is null"); return new Array2Func<T1, T2, R>(f); } private  Functions(); }
Functions { public static <T1, T2, R> Function<Object[], R> toFunction(final BiFunction<? super T1, ? super T2, ? extends R> f) { ObjectHelper.requireNonNull(f, "f is null"); return new Array2Func<T1, T2, R>(f); } private  Functions(); static Function<Object[], R> toFunction(final BiFunction<? super T1, ? super T2, ? extends R> f); static Function<Object[], R> toFunction(final Function3<T1, T2, T3, R> f); static Function<Object[], R> toFunction(final Function4<T1, T2, T3, T4, R> f); static Function<Object[], R> toFunction(final Function5<T1, T2, T3, T4, T5, R> f); static Function<Object[], R> toFunction(
            final Function6<T1, T2, T3, T4, T5, T6, R> f); static Function<Object[], R> toFunction(
            final Function7<T1, T2, T3, T4, T5, T6, T7, R> f); static Function<Object[], R> toFunction(
            final Function8<T1, T2, T3, T4, T5, T6, T7, T8, R> f); static Function<Object[], R> toFunction(
            final Function9<T1, T2, T3, T4, T5, T6, T7, T8, T9, R> f); @SuppressWarnings("unchecked") static Function<T, T> identity(); @SuppressWarnings("unchecked") static Consumer<T> emptyConsumer(); @SuppressWarnings("unchecked") static Predicate<T> alwaysTrue(); @SuppressWarnings("unchecked") static Predicate<T> alwaysFalse(); @SuppressWarnings("unchecked") static Callable<T> nullSupplier(); @SuppressWarnings("unchecked") static Comparator<T> naturalOrder(); static Action futureAction(Future<?> future); static Callable<T> justCallable(T value); static Function<T, U> justFunction(U value); static Function<T, U> castFunction(Class<U> target); static Callable<List<T>> createArrayList(int capacity); static Predicate<T> equalsWith(T value); @SuppressWarnings({ "rawtypes", "unchecked" }) static Callable<Set<T>> createHashSet(); static Consumer<T> notificationOnNext(Consumer<? super Notification<T>> onNotification); static Consumer<Throwable> notificationOnError(Consumer<? super Notification<T>> onNotification); static Action notificationOnComplete(Consumer<? super Notification<T>> onNotification); static Consumer<T> actionConsumer(Action action); static Predicate<T> isInstanceOf(Class<U> clazz); static Predicate<T> predicateReverseFor(BooleanSupplier supplier); static Function<T, Timed<T>> timestampWith(TimeUnit unit, Scheduler scheduler); static BiConsumer<Map<K, T>, T> toMapKeySelector(final Function<? super T, ? extends K> keySelector); static BiConsumer<Map<K, V>, T> toMapKeyValueSelector(final Function<? super T, ? extends K> keySelector, final Function<? super T, ? extends V> valueSelector); static BiConsumer<Map<K, Collection<V>>, T> toMultimapKeyValueSelector(
            final Function<? super T, ? extends K> keySelector, final Function<? super T, ? extends V> valueSelector,
            final Function<? super K, ? extends Collection<? super V>> collectionFactory); @SuppressWarnings("unchecked") static Comparator<T> naturalComparator(); static Function<List<T>, List<T>> listSorter(final Comparator<? super T> comparator); }
Functions { public static <T1, T2, R> Function<Object[], R> toFunction(final BiFunction<? super T1, ? super T2, ? extends R> f) { ObjectHelper.requireNonNull(f, "f is null"); return new Array2Func<T1, T2, R>(f); } private  Functions(); static Function<Object[], R> toFunction(final BiFunction<? super T1, ? super T2, ? extends R> f); static Function<Object[], R> toFunction(final Function3<T1, T2, T3, R> f); static Function<Object[], R> toFunction(final Function4<T1, T2, T3, T4, R> f); static Function<Object[], R> toFunction(final Function5<T1, T2, T3, T4, T5, R> f); static Function<Object[], R> toFunction(
            final Function6<T1, T2, T3, T4, T5, T6, R> f); static Function<Object[], R> toFunction(
            final Function7<T1, T2, T3, T4, T5, T6, T7, R> f); static Function<Object[], R> toFunction(
            final Function8<T1, T2, T3, T4, T5, T6, T7, T8, R> f); static Function<Object[], R> toFunction(
            final Function9<T1, T2, T3, T4, T5, T6, T7, T8, T9, R> f); @SuppressWarnings("unchecked") static Function<T, T> identity(); @SuppressWarnings("unchecked") static Consumer<T> emptyConsumer(); @SuppressWarnings("unchecked") static Predicate<T> alwaysTrue(); @SuppressWarnings("unchecked") static Predicate<T> alwaysFalse(); @SuppressWarnings("unchecked") static Callable<T> nullSupplier(); @SuppressWarnings("unchecked") static Comparator<T> naturalOrder(); static Action futureAction(Future<?> future); static Callable<T> justCallable(T value); static Function<T, U> justFunction(U value); static Function<T, U> castFunction(Class<U> target); static Callable<List<T>> createArrayList(int capacity); static Predicate<T> equalsWith(T value); @SuppressWarnings({ "rawtypes", "unchecked" }) static Callable<Set<T>> createHashSet(); static Consumer<T> notificationOnNext(Consumer<? super Notification<T>> onNotification); static Consumer<Throwable> notificationOnError(Consumer<? super Notification<T>> onNotification); static Action notificationOnComplete(Consumer<? super Notification<T>> onNotification); static Consumer<T> actionConsumer(Action action); static Predicate<T> isInstanceOf(Class<U> clazz); static Predicate<T> predicateReverseFor(BooleanSupplier supplier); static Function<T, Timed<T>> timestampWith(TimeUnit unit, Scheduler scheduler); static BiConsumer<Map<K, T>, T> toMapKeySelector(final Function<? super T, ? extends K> keySelector); static BiConsumer<Map<K, V>, T> toMapKeyValueSelector(final Function<? super T, ? extends K> keySelector, final Function<? super T, ? extends V> valueSelector); static BiConsumer<Map<K, Collection<V>>, T> toMultimapKeyValueSelector(
            final Function<? super T, ? extends K> keySelector, final Function<? super T, ? extends V> valueSelector,
            final Function<? super K, ? extends Collection<? super V>> collectionFactory); @SuppressWarnings("unchecked") static Comparator<T> naturalComparator(); static Function<List<T>, List<T>> listSorter(final Comparator<? super T> comparator); static final Runnable EMPTY_RUNNABLE; static final Action EMPTY_ACTION; static final Consumer<Throwable> ERROR_CONSUMER; static final Consumer<Throwable> ON_ERROR_MISSING; static final LongConsumer EMPTY_LONG_CONSUMER; static final Consumer<Subscription> REQUEST_MAX; }