package gnu.trove; /* loaded from: classes2.dex */ public abstract class TPrimitiveHash extends THash { protected static final byte FREE = 0; protected static final byte FULL = 1; protected static final byte REMOVED = 2; protected transient byte[] _states; public TPrimitiveHash() { } @Override // gnu.trove.THash protected int capacity() { byte[] bArr = this._states; if (bArr == null) { return 0; } return bArr.length; } @Override // gnu.trove.THash public Object clone() { TPrimitiveHash tPrimitiveHash = (TPrimitiveHash) super.clone(); byte[] bArr = this._states; tPrimitiveHash._states = bArr == null ? null : (byte[]) bArr.clone(); return tPrimitiveHash; } @Override // gnu.trove.THash protected void removeAt(int i) { this._states[i] = 2; super.removeAt(i); } @Override // gnu.trove.THash protected int setUp(int i) { int up = super.setUp(i); this._states = i == -1 ? null : new byte[up]; return up; } public TPrimitiveHash(int i) { this(i, 0.8f); } public TPrimitiveHash(int i, float f) { super(i, f); } }