package com.google.common.collect; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableTable; import com.google.common.collect.Table; import java.util.Map; @ElementTypesAreNonnullByDefault /* loaded from: classes3.dex */ class SingletonImmutableTable extends ImmutableTable { final C singleColumnKey; final R singleRowKey; final V singleValue; @Override // com.google.common.collect.Table public int size() { return 1; } /* JADX WARN: Multi-variable type inference failed */ @Override // com.google.common.collect.ImmutableTable, com.google.common.collect.Table public /* bridge */ /* synthetic */ Map column(Object obj) { return column((SingletonImmutableTable) obj); } /* JADX INFO: Access modifiers changed from: package-private */ public SingletonImmutableTable(R r, C c, V v) { this.singleRowKey = (R) Preconditions.checkNotNull(r); this.singleColumnKey = (C) Preconditions.checkNotNull(c); this.singleValue = (V) Preconditions.checkNotNull(v); } /* JADX INFO: Access modifiers changed from: package-private */ public SingletonImmutableTable(Table.Cell cell) { this(cell.getRowKey(), cell.getColumnKey(), cell.getValue()); } @Override // com.google.common.collect.ImmutableTable, com.google.common.collect.Table public ImmutableMap column(C c) { Preconditions.checkNotNull(c); if (containsColumn(c)) { return ImmutableMap.of(this.singleRowKey, (Object) this.singleValue); } return ImmutableMap.of(); } @Override // com.google.common.collect.ImmutableTable, com.google.common.collect.Table public ImmutableMap> columnMap() { return ImmutableMap.of(this.singleColumnKey, ImmutableMap.of(this.singleRowKey, (Object) this.singleValue)); } @Override // com.google.common.collect.ImmutableTable, com.google.common.collect.Table public ImmutableMap> rowMap() { return ImmutableMap.of(this.singleRowKey, ImmutableMap.of(this.singleColumnKey, (Object) this.singleValue)); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableTable, com.google.common.collect.AbstractTable public ImmutableSet> createCellSet() { return ImmutableSet.of(cellOf(this.singleRowKey, this.singleColumnKey, this.singleValue)); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableTable, com.google.common.collect.AbstractTable public ImmutableCollection createValues() { return ImmutableSet.of(this.singleValue); } @Override // com.google.common.collect.ImmutableTable ImmutableTable.SerializedForm createSerializedForm() { return ImmutableTable.SerializedForm.create(this, new int[]{0}, new int[]{0}); } }