package com.google.android.libraries.places.internal; import java.util.AbstractSet; import java.util.Arrays; import java.util.Comparator; import java.util.Iterator; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class zzlv extends AbstractSet { final int zza = -1; final zzlw zzb; /* JADX INFO: Access modifiers changed from: package-private */ public zzlv(zzlw zzlwVar, int i) { this.zzb = zzlwVar; } @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set public final boolean contains(Object obj) { Object[] objArr; Comparator comparator; objArr = this.zzb.zzb; int zzb = zzb(); int zza = zza(); if (this.zza != -1) { comparator = zzly.zza; } else { comparator = zzlw.zza; } return Arrays.binarySearch(objArr, zzb, zza, obj, comparator) >= 0; } @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set public final int size() { return zza() - zzb(); } /* JADX INFO: Access modifiers changed from: package-private */ public final int zza() { int[] iArr; iArr = this.zzb.zzc; return iArr[this.zza + 1]; } /* JADX INFO: Access modifiers changed from: package-private */ public final int zzb() { int[] iArr; if (this.zza == -1) { return 0; } iArr = this.zzb.zzc; return iArr[0]; } @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set public final Iterator iterator() { return new zzlu(this); } }