// Path: src/main/java/de/agilecoders/wicket/jquery/util/Strings2.java
// public static String nullToEmpty(final String value) {
//     return value != null ? value : "";
// }


import org.apache.wicket.util.lang.Objects;
import java.util.ArrayList;
import java.util.List;
import static de.agilecoders.wicket.jquery.util.Strings2.nullToEmpty;
package de.agilecoders.wicket.jquery.function;




/**
 * simple class to represent a javascript function.
 */
public class JavaScriptInlineFunction extends AbstractFunction {
    private final String functionBody;

    /**
     * Construct.
     *
     * @param functionBody the function body as string
     */
    public JavaScriptInlineFunction(final String functionBody) {
        this(functionBody, new ArrayList());
    }

    /**
     * Construct.
     *
     * @param functionBody the function body as string
     */
    public JavaScriptInlineFunction(final String functionBody, final List<CharSequence> parameters) {
        super("function", parameters);

// Path: src/main/java/de/agilecoders/wicket/jquery/util/Strings2.java
// public static String nullToEmpty(final String value) {
//     return value != null ? value : "";
// }


// Path: src/main/java/de/agilecoders/wicket/jquery/function/JavaScriptInlineFunction.java
import org.apache.wicket.util.lang.Objects;
import java.util.ArrayList;
import java.util.List;
import static de.agilecoders.wicket.jquery.util.Strings2.nullToEmpty;

package de.agilecoders.wicket.jquery.function;




/**
 * simple class to represent a javascript function.
 */
public class JavaScriptInlineFunction extends AbstractFunction {
    private final String functionBody;

    /**
     * Construct.
     *
     * @param functionBody the function body as string
     */
    public JavaScriptInlineFunction(final String functionBody) {
        this(functionBody, new ArrayList());
    }

    /**
     * Construct.
     *
     * @param functionBody the function body as string
     */
    public JavaScriptInlineFunction(final String functionBody, final List<CharSequence> parameters) {
        super("function", parameters);

        this.functionBody = nullToEmpty(functionBody);