summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/java8/JProcedure0.java
blob: 6004364d0326075791e1c2693aac0fbbdc662e58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (C) 2012-2015 Typesafe Inc. <http://www.typesafe.com>
 */

package scala.runtime.java8;

import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure0 extends JFunction0<BoxedUnit> {
    default void $init$() {
    }

    void applyVoid();

    default BoxedUnit apply() {
        applyVoid();
        return BoxedUnit.UNIT;
    }
}