org.graylog.security.shares.AutoValue_GranteeSharesService_SharesResponse Maven / Gradle / Ivy
package org.graylog.security.shares;
import java.util.Map;
import javax.annotation.processing.Generated;
import org.graylog.grn.GRN;
import org.graylog.security.Capability;
import org.graylog.security.entities.EntityDescriptor;
import org.graylog2.database.PaginatedList;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GranteeSharesService_SharesResponse extends GranteeSharesService.SharesResponse {
private final PaginatedList paginatedEntities;
private final Map capabilities;
AutoValue_GranteeSharesService_SharesResponse(
PaginatedList paginatedEntities,
Map capabilities) {
if (paginatedEntities == null) {
throw new NullPointerException("Null paginatedEntities");
}
this.paginatedEntities = paginatedEntities;
if (capabilities == null) {
throw new NullPointerException("Null capabilities");
}
this.capabilities = capabilities;
}
@Override
public PaginatedList paginatedEntities() {
return paginatedEntities;
}
@Override
public Map capabilities() {
return capabilities;
}
@Override
public String toString() {
return "SharesResponse{"
+ "paginatedEntities=" + paginatedEntities + ", "
+ "capabilities=" + capabilities
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GranteeSharesService.SharesResponse) {
GranteeSharesService.SharesResponse that = (GranteeSharesService.SharesResponse) o;
return this.paginatedEntities.equals(that.paginatedEntities())
&& this.capabilities.equals(that.capabilities());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= paginatedEntities.hashCode();
h$ *= 1000003;
h$ ^= capabilities.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy