package org.webrtc; import java.util.ArrayList; import java.util.List; /* loaded from: classes3.dex */ public class MediaConstraints { public final List mandatory = new ArrayList(); public final List optional = new ArrayList(); List getMandatory() { return this.mandatory; } List 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 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); } }