px.java 1.66 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableTable;
import com.google.common.collect.Table.Cell;
import java.util.Map;

@GwtCompatible
public final class px<R, C, V>
  extends ImmutableTable<R, C, V>
{
  final R a;
  final C b;
  final V c;
  
  public px(Table.Cell<R, C, V> paramCell)
  {
    this(paramCell.getRowKey(), paramCell.getColumnKey(), paramCell.getValue());
  }
  
  public px(R paramR, C paramC, V paramV)
  {
    this.a = Preconditions.checkNotNull(paramR);
    this.b = Preconditions.checkNotNull(paramC);
    this.c = Preconditions.checkNotNull(paramV);
  }
  
  public final ImmutableMap<R, V> column(C paramC)
  {
    Preconditions.checkNotNull(paramC);
    if (containsColumn(paramC)) {
      return ImmutableMap.of(this.a, this.c);
    }
    return ImmutableMap.of();
  }
  
  public final ImmutableMap<C, Map<R, V>> columnMap()
  {
    return ImmutableMap.of(this.b, ImmutableMap.of(this.a, this.c));
  }
  
  final ImmutableSet<Table.Cell<R, C, V>> e()
  {
    return ImmutableSet.of(a(this.a, this.b, this.c));
  }
  
  final ImmutableCollection<V> f()
  {
    return ImmutableSet.of(this.c);
  }
  
  public final ImmutableMap<R, Map<C, V>> rowMap()
  {
    return ImmutableMap.of(this.a, ImmutableMap.of(this.b, this.c));
  }
  
  public final int size()
  {
    return 1;
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/px.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */