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

com.cx.restclient.dto.Team Maven / Gradle / Ivy

The newest version!
package com.cx.restclient.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Created by Galn on 14/02/2018.
 */

@JsonIgnoreProperties(ignoreUnknown = true)
public class Team {
    public String id;
    public String fullName;

    public Team() {
    }

    public Team(String id, String fullName) {
        this.id = id;
        this.fullName = fullName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Team)) return false;

        Team team = (Team) o;

        if (!getId().equals(team.getId())) return false;
        return getFullName().equals(team.getFullName());

    }

    @Override
    public int hashCode() {
        int result = getId().hashCode();
        result = 31 * result + getFullName().hashCode();
        return result;
    }

    public String  getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy