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

com.disdar.api.model.ExtractionResult Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package com.disdar.api.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class ExtractionResult {

    private double confidence;
    private List words;

    public ExtractionResult(@JsonProperty("confidence") double confidence,
                            @JsonProperty("words") List words) {
        this.confidence = confidence;
        this.words = words;
    }

    public double getConfidence() {
        return confidence;
    }

    public List getWords() {
        return words;
    }

    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy