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

com.tradeshift.sdk.linelinker.domain.SourceDocResultElement Maven / Gradle / Ivy

/*
 * Copyright (c) 2018 Tradeshift Inc. and/or its affiliates. All rights reserved.
 */
package com.tradeshift.sdk.linelinker.domain;

import java.util.List;
import java.util.Objects;

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

public class SourceDocResultElement {

    private String sourceLineId;
    private List matches;

    @JsonCreator
    public SourceDocResultElement(@JsonProperty("sourceLineId") String sourceLineId,
                                  @JsonProperty("matches") List matches) {
        this.sourceLineId = sourceLineId;
        this.matches = matches;
    }

    public String getSourceLineId() {
        return sourceLineId;
    }

    public List getMatches() {
        return matches;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        SourceDocResultElement that = (SourceDocResultElement) o;
        return Objects.equals(sourceLineId, that.sourceLineId) &&
                Objects.equals(matches, that.matches);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sourceLineId, matches);
    }

    @Override
    public String toString() {
        return "SourceDocResultElement{" +
                "sourceLineId='" + sourceLineId + '\'' +
                ", matches=" + matches +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy