package net.sourceforge.zbar; import java.util.AbstractCollection; import java.util.Iterator; import o.C15147gib; /* loaded from: classes6.dex */ public class SymbolSet extends AbstractCollection { private long peer; public static native void init(); public native void destroy(long j); public native long firstSymbol(long j); @Override // java.util.AbstractCollection, java.util.Collection public native int size(); protected void finalize() { synchronized (this) { long j = this.peer; if (j != 0) { destroy(j); this.peer = 0L; } } } @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable public Iterator iterator() { long firstSymbol = firstSymbol(this.peer); return firstSymbol == 0 ? new C15147gib(null) : new C15147gib(new Symbol(firstSymbol)); } public SymbolSet(long j) { this.peer = j; } static { System.loadLibrary("s4515e"); init(); } }