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

io.github.laskowski.shell.output.messages.MessageAction Maven / Gradle / Ivy

Go to download

Library to launch .bat and .sh scripts of your choice with different configurations. Allows you to read tasks and services output from terminal

There is a newer version: 2.0.6.1
Show newest version
package io.github.laskowski.shell.output.messages;

import io.github.laskowski.shell.output.service.ServiceReadyPredicate;

import java.util.function.Predicate;

public abstract class MessageAction implements ServiceReadyPredicate, ServiceErrorPredicate, MessageExclusionStrategy {
    protected final String expected;

    public MessageAction(String expected) {
        this.expected = expected;
    }

    public abstract Predicate getPredicate();

    @Override
    public boolean test(String message) {
        return getPredicate().test(message);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy