com.treasuredata.client.model.TDUserList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of td-client Show documentation
Show all versions of td-client Show documentation
Treasure Data Client for Java.
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