/** * Logs the given message and sets it as current state. * * @param message the message to log * @param args the parameters used to format the message (see {@link Strings#apply(String, Object...)}) */ public void logAsCurrentState(String message, Object... args) { log(message, args); setState(message, args); }