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

org.nameapi.client.services.nameparser.fieldnameparser.FieldNameParserResult Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package org.nameapi.client.services.nameparser.fieldnameparser;

import com.google.common.collect.ImmutableList;
import org.jetbrains.annotations.NotNull;

import java.util.Collections;
import java.util.List;

/**
 * The result of a {@link FieldNameParserCommand}.
 *
 * @author Fabian Kessler
 */
public class FieldNameParserResult {

    private static final FieldNameParserResult EMPTY = new FieldNameParserResult(Collections.emptyList());
    public static FieldNameParserResult empty() {
        return EMPTY;
    }

    @NotNull
    private final List matches;

    public FieldNameParserResult(@NotNull List matches) {
        this.matches = ImmutableList.copyOf(matches);
    }

    @NotNull
    public List getMatches() {
        return matches;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy