org.graylog2.users.$AutoValue_UserAndTeamsConfig Maven / Gradle / Ivy
package org.graylog2.users;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_UserAndTeamsConfig extends UserAndTeamsConfig {
private final boolean sharingWithEveryone;
private final boolean sharingWithUsers;
$AutoValue_UserAndTeamsConfig(
boolean sharingWithEveryone,
boolean sharingWithUsers) {
this.sharingWithEveryone = sharingWithEveryone;
this.sharingWithUsers = sharingWithUsers;
}
@JsonProperty("allow_sharing_with_everyone")
@Override
public boolean sharingWithEveryone() {
return sharingWithEveryone;
}
@JsonProperty("allow_sharing_with_users")
@Override
public boolean sharingWithUsers() {
return sharingWithUsers;
}
@Override
public String toString() {
return "UserAndTeamsConfig{"
+ "sharingWithEveryone=" + sharingWithEveryone + ", "
+ "sharingWithUsers=" + sharingWithUsers
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UserAndTeamsConfig) {
UserAndTeamsConfig that = (UserAndTeamsConfig) o;
return this.sharingWithEveryone == that.sharingWithEveryone()
&& this.sharingWithUsers == that.sharingWithUsers();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= sharingWithEveryone ? 1231 : 1237;
h$ *= 1000003;
h$ ^= sharingWithUsers ? 1231 : 1237;
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy