/*
 * See LICENSE file in distribution for copyright and licensing information.
 */
package org.yaml.snakeyaml.resolver;

import java.util.regex.Pattern;

final class ResolverTuple {
    private String tag;
    private Pattern regexp;

    public ResolverTuple(String tag, Pattern regexp) {
        this.tag = tag;
        this.regexp = regexp;
    }

    public String getTag() {
        return tag;
    }

    public Pattern getRegexp() {
        return regexp;
    }

    @Override
    public String toString() {
        return "Tuple tag=" + tag + " regexp=" + regexp;
    }
}
/*
 * See LICENSE file in distribution for copyright and licensing information.
 */
package org.yaml.snakeyaml.resolver;

import java.util.regex.Pattern;

final class ResolverTuple {
    private final String tag;
    private final Pattern regexp;

    public ResolverTuple(String tag, Pattern regexp) {
        this.tag = tag;
        this.regexp = regexp;
    }

    public String getTag() {
        return tag;
    }

    public Pattern getRegexp() {
        return regexp;
    }

    @Override
    public String toString() {
        return "Tuple tag=" + tag + " regexp=" + regexp;
    }
}
make members final in ResolverTuple