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

com.github.rauberprojects.client.model.Uber Maven / Gradle / Ivy

package com.github.rauberprojects.client.model;

import java.lang.*;
import java.util.ArrayList;
import java.util.List;

public class Uber {

    private String version;
    private List data = new ArrayList();
    private List errors = new ArrayList();

    public String getVersion() {
        return version;
    }

    public List getData() {
        return data;
    }

    public List getErrors() {
        return errors;
    }

    public Uber() { }

    public Uber(Uber other) {
        this.version = other.version;
        this.data = Utils.deepCopyDataList(other.data);
        this.errors = Utils.deepCopyErrorList(other.errors);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Uber uber = (Uber) o;

        if (version != null ? !version.equals(uber.version) : uber.version != null) return false;
        if (data != null ? !data.equals(uber.data) : uber.data != null) return false;
        return !(errors != null ? !errors.equals(uber.errors) : uber.errors != null);

    }

    @Override
    public int hashCode() {
        int result = version != null ? version.hashCode() : 0;
        result = 31 * result + (data != null ? data.hashCode() : 0);
        result = 31 * result + (errors != null ? errors.hashCode() : 0);
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy