granularity level: instruction

		.class public final Lcom/google/android/datatransport/runtime/dagger/internal/DaggerCollections;
.super Ljava/lang/Object;
.source "DaggerCollections.java"


.field private static final MAX_POWER_OF_TWO:I = 0x40000000


.method private constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method private static calculateInitialCapacity(I)I
	.locals 1

	const/4 v0, 0x3
	if-ge p0, v0, :cond_0
	add-int/lit8 p0, p0, 0x1
	return p0
	:cond_0
	const/high16 v0, 0x40000000    # 2.0f
	if-ge p0, v0, :cond_1
	int-to-float p0, p0
	const/high16 v0, 0x3f400000    # 0.75f
	div-float/2addr p0, v0
	const/high16 v0, 0x3f800000    # 1.0f
	add-float/2addr p0, v0
	float-to-int p0, p0
	return p0
	:cond_1
	const p0, 0x7fffffff
	return p0
.end method

.method public static hasDuplicates(Ljava/util/List;)Z
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/List<",
	"*>;)Z"
	}
	.end annotation

	invoke-interface {p0}, Ljava/util/List;->size()I
	move-result v0
	const/4 v1, 0x0
	const/4 v2, 0x2
	if-ge v0, v2, :cond_0
	return v1
	:cond_0
	new-instance v0, Ljava/util/HashSet;
	invoke-direct {v0, p0}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
	invoke-interface {p0}, Ljava/util/List;->size()I
	move-result p0
	invoke-interface {v0}, Ljava/util/Set;->size()I
	move-result v0
	if-eq p0, v0, :cond_1
	const/4 v1, 0x1
	:cond_1
	return v1
.end method

.method static newHashSetWithExpectedSize(I)Ljava/util/HashSet;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(I)",
	"Ljava/util/HashSet<",
	"TT;>;"
	}
	.end annotation

	new-instance v0, Ljava/util/HashSet;
	invoke-static {p0}, Lcom/google/android/datatransport/runtime/dagger/internal/DaggerCollections;->calculateInitialCapacity(I)I
	move-result p0
	invoke-direct {v0, p0}, Ljava/util/HashSet;-><init>(I)V
	return-object v0
.end method

.method public static newLinkedHashMapWithExpectedSize(I)Ljava/util/LinkedHashMap;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<K:",
	"Ljava/lang/Object;",
	"V:",
	"Ljava/lang/Object;",
	">(I)",
	"Ljava/util/LinkedHashMap<",
	"TK;TV;>;"
	}
	.end annotation

	new-instance v0, Ljava/util/LinkedHashMap;
	invoke-static {p0}, Lcom/google/android/datatransport/runtime/dagger/internal/DaggerCollections;->calculateInitialCapacity(I)I
	move-result p0
	invoke-direct {v0, p0}, Ljava/util/LinkedHashMap;-><init>(I)V
	return-object v0
.end method

.method public static presizedList(I)Ljava/util/List;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(I)",
	"Ljava/util/List<",
	"TT;>;"
	}
	.end annotation

	if-nez p0, :cond_0
	invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
	move-result-object p0
	return-object p0
	:cond_0
	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0, p0}, Ljava/util/ArrayList;-><init>(I)V
	return-object v0
.end method