Identifier.java

/*
 * Copyright (C) 2019 sw4j.org
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.sw4j.tool.barcode.random.input;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * <p>
 * This class maps the input identifiers to Java objects.
 * </p>
 * <p>
 * This class is immutable.
 * </p>
 * @author Uwe Plonus &lt;u.plonus@gmail.com&gt;
 */
public class Identifier {

    /**
     * <p>
     * The identifier value itself.
     * </p>
     */
    private final String ident;

    /**
     * <p>
     * Create a new {@code Identifier} with the given {@code ident}.
     * </p>
     * @param ident the identifiers value.
     */
    @JsonCreator
    public Identifier(@JsonProperty("ident") final String ident) {
        this.ident = ident;
    }

    /**
     * <p>
     * The identifiers value.
     * </p>
     * @return the value.
     */
    public String getIdent() {
        return ident;
    }

}