VarArgConsumer.java revision 1400:6e41fdc6acdf
150128Swpaul/*
250128Swpaul * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
350128Swpaul * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
450128Swpaul *
550128Swpaul * This code is free software; you can redistribute it and/or modify it
650128Swpaul * under the terms of the GNU General Public License version 2 only, as
750128Swpaul * published by the Free Software Foundation.  Oracle designates this
850128Swpaul * particular file as subject to the "Classpath" exception as provided
950128Swpaul * by Oracle in the LICENSE file that accompanied this code.
1050128Swpaul *
1150128Swpaul * This code is distributed in the hope that it will be useful, but WITHOUT
1250128Swpaul * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1350128Swpaul * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1450128Swpaul * version 2 for more details (a copy is included in the LICENSE file that
1550128Swpaul * accompanied this code).
1650128Swpaul *
1750128Swpaul * You should have received a copy of the GNU General Public License version
1850128Swpaul * 2 along with this work; if not, write to the Free Software Foundation,
1950128Swpaul * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2050128Swpaul *
2150128Swpaul * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2250128Swpaul * or visit www.oracle.com if you need additional information or have any
2350128Swpaul * questions.
2450128Swpaul */
2550128Swpaul
2650128Swpaulpackage jdk.nashorn.test.models;
2750128Swpaul
2850128Swpaul/**
2950128Swpaul * Simple function interface with a varargs SAM method.
3050128Swpaul */
3150128Swpaul@FunctionalInterface
3250477Speterpublic interface VarArgConsumer {
3350128Swpaul    public void apply(Object... o);
3450128Swpaul}
3550128Swpaul
3650128Swpaul