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

com.treasuredata.client.model.TDUserList Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package com.treasuredata.client.model;

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

import java.util.List;

import static com.google.common.base.Preconditions.checkNotNull;

public class TDUserList
{
    private final List users;

    @JsonCreator
    TDUserList(@JsonProperty("users") List users)
    {
        this.users = checkNotNull(users, "users");
    }

    @JsonProperty("users")
    public List getUsers()
    {
        return users;
    }

    static TDUserList of(List users)
    {
        return new TDUserList(users);
    }

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

        TDUserList that = (TDUserList) o;

        return users != null ? users.equals(that.users) : that.users == null;
    }

    @Override
    public int hashCode()
    {
        return users != null ? users.hashCode() : 0;
    }

    @Override
    public String toString()
    {
        return "TDUserList{" +
                "users=" + users +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy