@@ -0,0 +1,2664 @@
+/**%0D%0A * Copyright (c) 2014, Data Geekery GmbH, contact@datageekery.com%0D%0A * All rights reserved.%0D%0A *%0D%0A * This software is licensed to you under the Apache License, Version 2.0%0D%0A * (the %22License%22); You may obtain a copy of the License at%0D%0A *%0D%0A *   http://www.apache.org/licenses/LICENSE-2.0%0D%0A *%0D%0A * Redistribution and use in source and binary forms, with or without%0D%0A * modification, are permitted provided that the following conditions are met:%0D%0A *%0D%0A * . Redistributions of source code must retain the above copyright notice, this%0D%0A *   list of conditions and the following disclaimer.%0D%0A *%0D%0A * . Redistributions in binary form must reproduce the above copyright notice,%0D%0A *   this list of conditions and the following disclaimer in the documentation%0D%0A *   and/or other materials provided with the distribution.%0D%0A *%0D%0A * . Neither the name %22jOOQ%22 nor the names of its contributors may be%0D%0A *   used to endorse or promote products derived from this software without%0D%0A *   specific prior written permission.%0D%0A *%0D%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS %22AS IS%22%0D%0A * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE%0D%0A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE%0D%0A * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE%0D%0A * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR%0D%0A * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF%0D%0A * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS%0D%0A * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN%0D%0A * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0D%0A * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE%0D%0A * POSSIBILITY OF SUCH DAMAGE.%0D%0A */%0D%0A%0D%0Apackage org.jooq.lambda.function;%0D%0A%0D%0Aimport java.util.function.Function;%0D%0Aimport java.util.function.Supplier;%0D%0A%0D%0A/**%0D%0A * A function with 0 arguments%0D%0A *%0D%0A * @author Lukas Eder%0D%0A */%0D%0A@FunctionalInterface%0D%0Apublic interface Function0%3CR%3E extends Supplier%3CR%3E %7B%0D%0A%0D%0A    /**%0D%0A     * Apply this function to the arguments.%0D%0A     */%0D%0A    default R apply() %7B%0D%0A        return get();%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Apply this function to the arguments.%0D%0A     */%0D%0A    @Override%0D%0A    R get();%0D%0A%0D%0A    /**%0D%0A     * Convert this function to a %7B@link java.util.function.Supplier%7D%0D%0A     */%0D%0A    default Supplier%3CR%3E toSupplier() %7B%0D%0A        return () -%3E apply();%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Convert to this function from a %7B@link java.util.function.Supplier%7D%0D%0A     */%0D%0A    static %3CR%3E Function0%3CR%3E from(Supplier%3CR%3E supplier) %7B%0D%0A        return () -%3E supplier.get();%0D%0A    %7D%0D%0A    %0D%0A%7D%0D%0A

Add Function0 as an additional Function type, extending Supplier