package co.discord.media_engine; import c.d.b.a.a; import d0.z.d.m; import java.util.Map; import java.util.Objects; /* compiled from: Codecs.kt */ public final class VideoEncoder { private final String name; private final Map params; private final String[] paramsKeys; private final String[] paramsValues; private final int rtxType; private final int type; public VideoEncoder(String str, int i, int i2, Map map) { m.checkNotNullParameter(str, "name"); m.checkNotNullParameter(map, "params"); this.name = str; this.type = i; this.rtxType = i2; this.params = map; Object[] array = map.keySet().toArray(new String[0]); Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array"); this.paramsKeys = (String[]) array; Object[] array2 = map.values().toArray(new String[0]); Objects.requireNonNull(array2, "null cannot be cast to non-null type kotlin.Array"); this.paramsValues = (String[]) array2; } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: co.discord.media_engine.VideoEncoder */ /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ VideoEncoder copy$default(VideoEncoder videoEncoder, String str, int i, int i2, Map map, int i3, Object obj) { if ((i3 & 1) != 0) { str = videoEncoder.name; } if ((i3 & 2) != 0) { i = videoEncoder.type; } if ((i3 & 4) != 0) { i2 = videoEncoder.rtxType; } if ((i3 & 8) != 0) { map = videoEncoder.params; } return videoEncoder.copy(str, i, i2, map); } public final String component1() { return this.name; } public final int component2() { return this.type; } public final int component3() { return this.rtxType; } public final Map component4() { return this.params; } public final VideoEncoder copy(String str, int i, int i2, Map map) { m.checkNotNullParameter(str, "name"); m.checkNotNullParameter(map, "params"); return new VideoEncoder(str, i, i2, map); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof VideoEncoder)) { return false; } VideoEncoder videoEncoder = (VideoEncoder) obj; return m.areEqual(this.name, videoEncoder.name) && this.type == videoEncoder.type && this.rtxType == videoEncoder.rtxType && m.areEqual(this.params, videoEncoder.params); } public final String getName() { return this.name; } public final Map getParams() { return this.params; } public final String[] getParamsKeys() { return this.paramsKeys; } public final String[] getParamsValues() { return this.paramsValues; } public final int getRtxType() { return this.rtxType; } public final int getType() { return this.type; } public int hashCode() { String str = this.name; int i = 0; int hashCode = (((((str != null ? str.hashCode() : 0) * 31) + this.type) * 31) + this.rtxType) * 31; Map map = this.params; if (map != null) { i = map.hashCode(); } return hashCode + i; } public String toString() { StringBuilder L = a.L("VideoEncoder(name="); L.append(this.name); L.append(", type="); L.append(this.type); L.append(", rtxType="); L.append(this.rtxType); L.append(", params="); return a.F(L, this.params, ")"); } }