107 lines
3 KiB
Java
107 lines
3 KiB
Java
package com.discord.utilities.textprocessing;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.util.Set;
|
|
/* compiled from: TagsBuilder.kt */
|
|
public final class Tags {
|
|
private final Set<Long> channels;
|
|
private final boolean isEmpty;
|
|
private final Set<Long> roles;
|
|
private final Set<Long> users;
|
|
|
|
public Tags(Set<Long> set, Set<Long> set2, Set<Long> set3) {
|
|
m.checkNotNullParameter(set, "users");
|
|
m.checkNotNullParameter(set2, "channels");
|
|
m.checkNotNullParameter(set3, "roles");
|
|
this.users = set;
|
|
this.channels = set2;
|
|
this.roles = set3;
|
|
this.isEmpty = set.isEmpty() && set3.isEmpty() && set2.isEmpty();
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Tags */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ Tags copy$default(Tags tags, Set set, Set set2, Set set3, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
set = tags.users;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
set2 = tags.channels;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
set3 = tags.roles;
|
|
}
|
|
return tags.copy(set, set2, set3);
|
|
}
|
|
|
|
public final Set<Long> component1() {
|
|
return this.users;
|
|
}
|
|
|
|
public final Set<Long> component2() {
|
|
return this.channels;
|
|
}
|
|
|
|
public final Set<Long> component3() {
|
|
return this.roles;
|
|
}
|
|
|
|
public final Tags copy(Set<Long> set, Set<Long> set2, Set<Long> set3) {
|
|
m.checkNotNullParameter(set, "users");
|
|
m.checkNotNullParameter(set2, "channels");
|
|
m.checkNotNullParameter(set3, "roles");
|
|
return new Tags(set, set2, set3);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Tags)) {
|
|
return false;
|
|
}
|
|
Tags tags = (Tags) obj;
|
|
return m.areEqual(this.users, tags.users) && m.areEqual(this.channels, tags.channels) && m.areEqual(this.roles, tags.roles);
|
|
}
|
|
|
|
public final Set<Long> getChannels() {
|
|
return this.channels;
|
|
}
|
|
|
|
public final Set<Long> getRoles() {
|
|
return this.roles;
|
|
}
|
|
|
|
public final Set<Long> getUsers() {
|
|
return this.users;
|
|
}
|
|
|
|
public int hashCode() {
|
|
Set<Long> set = this.users;
|
|
int i = 0;
|
|
int hashCode = (set != null ? set.hashCode() : 0) * 31;
|
|
Set<Long> set2 = this.channels;
|
|
int hashCode2 = (hashCode + (set2 != null ? set2.hashCode() : 0)) * 31;
|
|
Set<Long> set3 = this.roles;
|
|
if (set3 != null) {
|
|
i = set3.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public final boolean isEmpty() {
|
|
return this.isEmpty;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("Tags(users=");
|
|
L.append(this.users);
|
|
L.append(", channels=");
|
|
L.append(this.channels);
|
|
L.append(", roles=");
|
|
L.append(this.roles);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|