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

org.mobilitydata.gbfs.v3_0.manifest.GBFSData Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version

package org.mobilitydata.gbfs.v3_0.manifest;

import java.io.Serializable;
import java.util.List;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "datasets"
})
@Generated("jsonschema2pojo")
public class GBFSData implements Serializable
{

    /**
     * An array of objects, each containing the keys below.
     * (Required)
     * 
     */
    @JsonProperty("datasets")
    @JsonPropertyDescription("An array of objects, each containing the keys below.")
    private List datasets;
    private final static long serialVersionUID = 2826282282672083571L;

    /**
     * An array of objects, each containing the keys below.
     * (Required)
     * 
     */
    @JsonProperty("datasets")
    public List getDatasets() {
        return datasets;
    }

    /**
     * An array of objects, each containing the keys below.
     * (Required)
     * 
     */
    @JsonProperty("datasets")
    public void setDatasets(List datasets) {
        this.datasets = datasets;
    }

    public GBFSData withDatasets(List datasets) {
        this.datasets = datasets;
        return this;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(GBFSData.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
        sb.append("datasets");
        sb.append('=');
        sb.append(((this.datasets == null)?"":this.datasets));
        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.datasets == null)? 0 :this.datasets.hashCode()));
        return result;
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy