package com.google.android.exoplayer2.trackselection; import java.util.Arrays; /* loaded from: classes2.dex */ public final class TrackSelectionArray { private int hashCode; public final int length; private final TrackSelection[] trackSelections; public TrackSelectionArray(TrackSelection... trackSelectionArr) { this.trackSelections = trackSelectionArr; this.length = trackSelectionArr.length; } public TrackSelection get(int i) { return this.trackSelections[i]; } public TrackSelection[] getAll() { return (TrackSelection[]) this.trackSelections.clone(); } public int hashCode() { if (this.hashCode == 0) { this.hashCode = 527 + Arrays.hashCode(this.trackSelections); } return this.hashCode; } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } return Arrays.equals(this.trackSelections, ((TrackSelectionArray) obj).trackSelections); } }