Package com.googlecode.totallylazy.lambda

Source Code of com.googlecode.totallylazy.lambda.Lambdas

package com.googlecode.totallylazy.lambda;

import com.googlecode.totallylazy.Function;
import com.googlecode.totallylazy.Function1;
import com.googlecode.totallylazy.Function2;
import com.googlecode.totallylazy.Predicate;
import org.enumerable.lambda.annotation.NewLambda;
import org.enumerable.lambda.exception.LambdaWeavingNotEnabledException;


public class Lambdas {
    @org.enumerable.lambda.annotation.LambdaParameter
    public static Number n;

    @NewLambda
    public static <T> Function<T> λ(T result) {
        throw new LambdaWeavingNotEnabledException();
    }

    @NewLambda
    public static <I, R> Function1<I, R> λ(I input, R result) {
        throw new LambdaWeavingNotEnabledException();
    }

    @NewLambda
    public static <F, S, R> Function2<F, S, R> λ(F first, S second, R result) {
        throw new LambdaWeavingNotEnabledException();
    }

    @NewLambda
    public static <T> Function<T> lambda(T result) {
        throw new LambdaWeavingNotEnabledException();
    }

    @NewLambda
    public static <I, R> Function1<I, R> lambda(I input, R result) {
        throw new LambdaWeavingNotEnabledException();
    }

    @NewLambda
    public static <F, S, R> Function2<F, S, R> lambda(F first, S second, R result) {
        throw new LambdaWeavingNotEnabledException();
    }

    @NewLambda
    public static <T> Predicate<T> λp(T input, boolean to) {
        throw new LambdaWeavingNotEnabledException();
    }

    @NewLambda
    public static <T> Predicate<T> predicate(T input, boolean to) {
        throw new LambdaWeavingNotEnabledException();
    }
}
TOP

Related Classes of com.googlecode.totallylazy.lambda.Lambdas

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.