eu.cedarsoft.utils.ConsolePrinter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cmd Show documentation
Show all versions of cmd Show documentation
Utils for access to the command line.
The newest version!
package eu.cedarsoft.utils;
import org.jetbrains.annotations.NotNull;
/**
* Interface that creates messages to be printed to the console.
* Depending on the implementation the messages may be formated differently.
*/
public interface ConsolePrinter {
/**
* Creates an error message
*
* @param message the raw message
* @param objects the objects
* @return the error message
*/
@NotNull
String createError( @NotNull String message, @NotNull Object... objects );
/**
* Creates a warning
*
* @param message the raw message
* @param objects the objects
* @return the warning message
*/
@NotNull
String createWarning( @NotNull String message, @NotNull Object... objects );
/**
* Creates a success message
*
* @param message the raw message
* @param objects the objects
* @return the success mesage
*/
@NotNull
String createSuccess( @NotNull String message, @NotNull Object... objects );
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy