package org.webrtc; public class TurnCustomizer { private long nativeTurnCustomizer; public TurnCustomizer(long j) { this.nativeTurnCustomizer = j; } private void checkTurnCustomizerExists() { if (this.nativeTurnCustomizer == 0) { throw new IllegalStateException("TurnCustomizer has been disposed."); } } private static native void nativeFreeTurnCustomizer(long j); public void dispose() { checkTurnCustomizerExists(); nativeFreeTurnCustomizer(this.nativeTurnCustomizer); this.nativeTurnCustomizer = 0; } @CalledByNative public long getNativeTurnCustomizer() { checkTurnCustomizerExists(); return this.nativeTurnCustomizer; } }