Rabbit-R1/original r1/java/sources/org/webrtc/TurnCustomizer.java

30 lines
760 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package org.webrtc;
/* loaded from: classes3.dex */
public class TurnCustomizer {
private long nativeTurnCustomizer;
private static native void nativeFreeTurnCustomizer(long j);
public TurnCustomizer(long j) {
this.nativeTurnCustomizer = j;
}
public void dispose() {
checkTurnCustomizerExists();
nativeFreeTurnCustomizer(this.nativeTurnCustomizer);
this.nativeTurnCustomizer = 0L;
}
long getNativeTurnCustomizer() {
checkTurnCustomizerExists();
return this.nativeTurnCustomizer;
}
private void checkTurnCustomizerExists() {
if (this.nativeTurnCustomizer == 0) {
throw new IllegalStateException("TurnCustomizer has been disposed.");
}
}
}