Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Writer (0.13 sec)

  1. build-logic/documentation/src/test/resources/org/gradle/test/Java8Interface.java

    import java.util.function.Supplier;
    
    /**
     * An interface that uses Java 8 source features.
     */
    public interface Java8Interface extends CombinedInterface, JavaInterface {
        default String getName() {
            try (Writer writer = new StringWriter()) {
                Supplier<String> methodReference = this::toString;
                Supplier<String> lambda = () -> this.toString();
            } catch (IOException ignore) {
            }
            return "foo";
    Java
    - Registered: Wed Apr 10 11:36:10 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 1.1K bytes
    - Viewed (0)
Back to top