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

com.tradeshift.sdk.linelinker.json.JsonResult Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2018 Tradeshift Inc. and/or its affiliates. All rights reserved.
 */
package com.tradeshift.sdk.linelinker.json;

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tradeshift.sdk.linelinker.domain.SourceDocResult;

public class JsonResult {

    private List result;

    @JsonCreator
    public JsonResult(@JsonProperty("result") List result) {
        this.result = result;
    }

    public List getResult() {
        return result;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        JsonResult result1 = (JsonResult) o;
        return Objects.equals(result, result1.result);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), result);
    }

    @Override
    public String toString() {
        return "Result{" +
                "result=" + result +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy