STTApplication/src/main/java/com/build/labs/model/Alternative.java

package com.build.labs.model;

import java.util.HashMap;
import java.util.Map;

public class Alternative {

    private String transcript;
    private Double confidence;
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();

    public String getTranscript() {
        return transcript;
    }

    public void setTranscript(String transcript) {
        this.transcript = transcript;
    }

    public Double getConfidence() {
        return confidence;
    }

    public void setConfidence(Double confidence) {
        this.confidence = confidence;
    }

    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(Alternative.class.getName())
                .append('@')
                .append(Integer.toHexString(System.identityHashCode(this)))
                .append('[');
        sb.append("transcript");
        sb.append('=');
        sb.append(((this.transcript == null) ? "<null>" : this.transcript));
        sb.append(',');
        sb.append("confidence");
        sb.append('=');
        sb.append(((this.confidence == null) ? "<null>" : this.confidence));
        sb.append(',');
        sb.append("additionalProperties");
        sb.append('=');
        sb.append(((this.additionalProperties == null) ? "<null>" : this.additionalProperties));
        sb.append(',');
        if (sb.charAt((sb.length() - 1)) == ',') {
            sb.setCharAt((sb.length() - 1), ']');
        } else {
            sb.append(']');
        }
        return sb.toString();
    }

    @Override
    public int hashCode() {
        int result = 1;
        result = ((result * 31) + ((this.transcript == null) ? 0 : this.transcript.hashCode()));
        result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
        result = ((result * 31) + ((this.confidence == null) ? 0 : this.confidence.hashCode()));
        return result;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof Alternative) == false) {
            return false;
        }
        Alternative rhs = ((Alternative) other);
        return ((((this.transcript == rhs.transcript)
                || ((this.transcript != null) && this.transcript.equals(rhs.transcript)))
                && ((this.additionalProperties == rhs.additionalProperties) || ((this.additionalProperties != null)
                        && this.additionalProperties.equals(rhs.additionalProperties))))
                && ((this.confidence == rhs.confidence)
                        || ((this.confidence != null) && this.confidence.equals(rhs.confidence))));
    }

}
