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

com.glispa.combo.NoOpMacro Maven / Gradle / Ivy

The newest version!
package com.glispa.combo;

/**
 * A no op macro, perfect as a default
 */
public class NoOpMacro implements Macro {

    /**
     * Does nothing
     *
     * @param in the standard input, could be null
     * @param state the current state
     * @return the input unchanged
     */
    @Override
    public String apply(String in, S state) {
        return in;
    }
}