mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
71 lines
1.9 KiB
Java
71 lines
1.9 KiB
Java
package org.webrtc;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class MediaConstraints {
|
|
public final List<KeyValuePair> mandatory = new ArrayList();
|
|
public final List<KeyValuePair> optional = new ArrayList();
|
|
|
|
List<KeyValuePair> getMandatory() {
|
|
return this.mandatory;
|
|
}
|
|
|
|
List<KeyValuePair> getOptional() {
|
|
return this.optional;
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class KeyValuePair {
|
|
private final String key;
|
|
private final String value;
|
|
|
|
public String getKey() {
|
|
return this.key;
|
|
}
|
|
|
|
public String getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public KeyValuePair(String str, String str2) {
|
|
this.key = str;
|
|
this.value = str2;
|
|
}
|
|
|
|
public String toString() {
|
|
return this.key + ": " + this.value;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || getClass() != obj.getClass()) {
|
|
return false;
|
|
}
|
|
KeyValuePair keyValuePair = (KeyValuePair) obj;
|
|
return this.key.equals(keyValuePair.key) && this.value.equals(keyValuePair.value);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.key.hashCode() + this.value.hashCode();
|
|
}
|
|
}
|
|
|
|
private static String stringifyKeyValuePairList(List<KeyValuePair> list) {
|
|
StringBuilder sb = new StringBuilder("[");
|
|
for (KeyValuePair keyValuePair : list) {
|
|
if (sb.length() > 1) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(keyValuePair.toString());
|
|
}
|
|
return sb.append("]").toString();
|
|
}
|
|
|
|
public String toString() {
|
|
return "mandatory: " + stringifyKeyValuePairList(this.mandatory) + ", optional: " + stringifyKeyValuePairList(this.optional);
|
|
}
|
|
}
|