72 lines
2.5 KiB
Java
72 lines
2.5 KiB
Java
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;
|
|
|
|
/* loaded from: classes.dex */
|
|
class SingletonImmutableTable<R, C, V> extends ImmutableTable<R, C, V> {
|
|
final R a;
|
|
final C b;
|
|
final V c;
|
|
|
|
SingletonImmutableTable(R r, C c, V v) {
|
|
Preconditions.a(r);
|
|
this.a = r;
|
|
Preconditions.a(c);
|
|
this.b = c;
|
|
Preconditions.a(v);
|
|
this.c = v;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // com.google.common.collect.ImmutableTable
|
|
/* renamed from: column */
|
|
public /* bridge */ /* synthetic */ Map mo11column(Object obj) {
|
|
return column((SingletonImmutableTable<R, C, V>) obj);
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableTable
|
|
ImmutableTable.SerializedForm createSerializedForm() {
|
|
return ImmutableTable.SerializedForm.a(this, new int[]{0}, new int[]{0});
|
|
}
|
|
|
|
@Override // com.google.common.collect.Table
|
|
public int size() {
|
|
return 1;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableTable
|
|
public ImmutableMap<R, V> column(C c) {
|
|
Preconditions.a(c);
|
|
return containsColumn(c) ? ImmutableMap.of(this.a, (Object) this.c) : ImmutableMap.of();
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableTable, com.google.common.collect.Table
|
|
public ImmutableMap<C, Map<R, V>> columnMap() {
|
|
return ImmutableMap.of(this.b, ImmutableMap.of(this.a, (Object) this.c));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // com.google.common.collect.ImmutableTable, com.google.common.collect.AbstractTable
|
|
public ImmutableSet<Table.Cell<R, C, V>> createCellSet() {
|
|
return ImmutableSet.of(ImmutableTable.cellOf(this.a, this.b, this.c));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // com.google.common.collect.ImmutableTable, com.google.common.collect.AbstractTable
|
|
public ImmutableCollection<V> createValues() {
|
|
return ImmutableSet.of(this.c);
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableTable, com.google.common.collect.Table
|
|
public ImmutableMap<R, Map<C, V>> rowMap() {
|
|
return ImmutableMap.of(this.a, ImmutableMap.of(this.b, (Object) this.c));
|
|
}
|
|
|
|
SingletonImmutableTable(Table.Cell<R, C, V> cell) {
|
|
this(cell.b(), cell.a(), cell.getValue());
|
|
}
|
|
}
|