// Path: url/src/main/java/com/danisola/restify/url/preconditions/Preconditions.java
// public static String checkArgumentNotNullOrEmpty(String string) {
//     if (string == null || string.isEmpty()) {
//         throw new IllegalArgumentException("Argument cannot be null or empty");
//     }
//     return string;
// }


import static com.danisola.restify.url.preconditions.Preconditions.checkArgumentNotNullOrEmpty;
package com.danisola.restify.url.types;


public class StrArrayVar extends AbstractVarType<String[]> {

    public static StrArrayVar strArrayVar(String id) {
        return new StrArrayVar(id);
    }

    public static StrArrayVar strArrayVar(String id, String regex) {
        return new StrArrayVar(id, regex);
    }

    private StrArrayVar(String id) {
        super(id);
    }

    private StrArrayVar(String id, String regex) {
        super(id);
    }

    @Override
    public String[] convert(String value) {
// Path: url/src/main/java/com/danisola/restify/url/preconditions/Preconditions.java
// public static String checkArgumentNotNullOrEmpty(String string) {
//     if (string == null || string.isEmpty()) {
//         throw new IllegalArgumentException("Argument cannot be null or empty");
//     }
//     return string;
// }


// Path: url/src/main/java/com/danisola/restify/url/types/StrArrayVar.java
import static com.danisola.restify.url.preconditions.Preconditions.checkArgumentNotNullOrEmpty;

package com.danisola.restify.url.types;


public class StrArrayVar extends AbstractVarType<String[]> {

    public static StrArrayVar strArrayVar(String id) {
        return new StrArrayVar(id);
    }

    public static StrArrayVar strArrayVar(String id, String regex) {
        return new StrArrayVar(id, regex);
    }

    private StrArrayVar(String id) {
        super(id);
    }

    private StrArrayVar(String id, String regex) {
        super(id);
    }

    @Override
    public String[] convert(String value) {
        return checkArgumentNotNullOrEmpty(value).split(",");