mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
60 lines
1.7 KiB
Java
60 lines
1.7 KiB
Java
package org.webrtc;
|
|
|
|
import java.util.Arrays;
|
|
import org.webrtc.PeerConnection;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class IceCandidate {
|
|
public final PeerConnection.AdapterType adapterType;
|
|
public final String sdp;
|
|
public final int sdpMLineIndex;
|
|
public final String sdpMid;
|
|
public final String serverUrl;
|
|
|
|
String getSdp() {
|
|
return this.sdp;
|
|
}
|
|
|
|
String getSdpMid() {
|
|
return this.sdpMid;
|
|
}
|
|
|
|
public IceCandidate(String str, int i, String str2) {
|
|
this.sdpMid = str;
|
|
this.sdpMLineIndex = i;
|
|
this.sdp = str2;
|
|
this.serverUrl = "";
|
|
this.adapterType = PeerConnection.AdapterType.UNKNOWN;
|
|
}
|
|
|
|
IceCandidate(String str, int i, String str2, String str3, PeerConnection.AdapterType adapterType) {
|
|
this.sdpMid = str;
|
|
this.sdpMLineIndex = i;
|
|
this.sdp = str2;
|
|
this.serverUrl = str3;
|
|
this.adapterType = adapterType;
|
|
}
|
|
|
|
public String toString() {
|
|
return this.sdpMid + ":" + this.sdpMLineIndex + ":" + this.sdp + ":" + this.serverUrl + ":" + this.adapterType.toString();
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (!(obj instanceof IceCandidate)) {
|
|
return false;
|
|
}
|
|
IceCandidate iceCandidate = (IceCandidate) obj;
|
|
return objectEquals(this.sdpMid, iceCandidate.sdpMid) && this.sdpMLineIndex == iceCandidate.sdpMLineIndex && objectEquals(this.sdp, iceCandidate.sdp);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Arrays.hashCode(new Object[]{this.sdpMid, Integer.valueOf(this.sdpMLineIndex), this.sdp});
|
|
}
|
|
|
|
private static boolean objectEquals(Object obj, Object obj2) {
|
|
if (obj == null) {
|
|
return obj2 == null;
|
|
}
|
|
return obj.equals(obj2);
|
|
}
|
|
}
|