sdmxdl.EventListener Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdmx-dl-api Show documentation
Show all versions of sdmx-dl-api Show documentation
Easily download official statistics - API
The newest version!
package sdmxdl;
import lombok.NonNull;
import java.util.function.Consumer;
@FunctionalInterface
public interface EventListener {
void accept(@NonNull S source, @NonNull String marker, @NonNull CharSequence message);
default @NonNull Consumer asConsumer(@NonNull S source, @NonNull String marker) {
return message -> accept(source, marker, message);
}
}