notify.internal.BaseNotifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-to-OS-notify Show documentation
Show all versions of java-to-OS-notify Show documentation
Java to Operating System Notification
The newest version!
package notify.internal;
import notify.MessageType;
import notify.Notifier;
/**
* @author francois wauquier
*/
public abstract class BaseNotifier implements Notifier {
protected String prefix(MessageType messageType) {
switch (messageType) {
case NONE:
return "";
case INFO:
return "! ";
case WARNING:
return "∆ ";
case ERROR:
return "☠ ";
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy