VarArgConsumer.java revision 1400:6e41fdc6acdf
185587Sobrien/*
285587Sobrien * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
385587Sobrien * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
485587Sobrien *
585587Sobrien * This code is free software; you can redistribute it and/or modify it
685587Sobrien * under the terms of the GNU General Public License version 2 only, as
785587Sobrien * published by the Free Software Foundation.  Oracle designates this
885587Sobrien * particular file as subject to the "Classpath" exception as provided
985587Sobrien * by Oracle in the LICENSE file that accompanied this code.
1085587Sobrien *
1185587Sobrien * This code is distributed in the hope that it will be useful, but WITHOUT
1285587Sobrien * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1385587Sobrien * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1485587Sobrien * version 2 for more details (a copy is included in the LICENSE file that
1585587Sobrien * accompanied this code).
1685587Sobrien *
1785587Sobrien * You should have received a copy of the GNU General Public License version
1885587Sobrien * 2 along with this work; if not, write to the Free Software Foundation,
1985587Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2085587Sobrien *
2185587Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2285587Sobrien * or visit www.oracle.com if you need additional information or have any
2385587Sobrien * questions.
2485587Sobrien */
2585587Sobrien
2685587Sobrienpackage jdk.nashorn.test.models;
2785587Sobrien
2885587Sobrien/**
2985587Sobrien * Simple function interface with a varargs SAM method.
3085587Sobrien */
3185587Sobrien@FunctionalInterface
3285587Sobrienpublic interface VarArgConsumer {
3385587Sobrien    public void apply(Object... o);
3485587Sobrien}
3585587Sobrien
3685587Sobrien