All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qwlabs.lang.EmptyConsumer Maven / Gradle / Ivy

There is a newer version: 0.2.354
Show newest version
package com.qwlabs.lang;

import java.util.Objects;

@FunctionalInterface
public interface EmptyConsumer {

    void accept();

    default EmptyConsumer andThen(EmptyConsumer after) {
        Objects.requireNonNull(after);
        return () -> {
            accept();
            after.accept();
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy