Home | History | Annotate | Download | only in collect

Lines Matching refs:Cell

28 import com.google.common.collect.Table.Cell;
53 * Returns an immutable cell with the specified row key, column key, and
56 * <p>The returned cell is serializable.
58 * @param rowKey the row key to be associated with the returned cell
59 * @param columnKey the column key to be associated with the returned cell
60 * @param value the value to be associated with the returned cell
62 public static <R, C, V> Cell<R, C, V> immutableCell(
96 abstract static class AbstractCell<R, C, V> implements Cell<R, C, V> {
104 if (obj instanceof Cell) {
105 Cell<?, ?, ?> other = (Cell<?, ?, ?>) obj;
260 private static final Function<Cell<?, ?, ?>, Cell<?, ?, ?>> TRANSPOSE_CELL =
261 new Function<Cell<?, ?, ?>, Cell<?, ?, ?>>() {
263 public Cell<?, ?, ?> apply(Cell<?, ?, ?> cell) {
265 cell.getColumnKey(), cell.getRowKey(), cell.getValue());
272 public Set<Cell<C, R, V>> cellSet() {
277 class CellSet extends TransformedCollection<Cell<R, C, V>, Cell<C, R, V>>
278 implements Set<Cell<C, R, V>> {
304 if (obj instanceof Cell) {
305 Cell<?, ?, ?> cell = (Cell<?, ?, ?>) obj;
307 cell.getColumnKey(), cell.getRowKey(), cell.getValue()));
313 if (obj instanceof Cell) {
314 Cell<?, ?, ?> cell = (Cell<?, ?, ?>) obj;
316 cell.getColumnKey(), cell.getRowKey(), cell.getValue()));
471 Function<Cell<R, C, V1>, Cell<R, C, V2>> cellFunction() {
472 return new Function<Cell<R, C, V1>, Cell<R, C, V2>>() {
473 @Override public Cell<R, C, V2> apply(Cell<R, C, V1> cell) {
475 cell.getRowKey(), cell.getColumnKey(),
476 function.apply(cell.getValue()));
481 class CellSet extends TransformedCollection<Cell<R, C, V1>, Cell<R, C, V2>>
482 implements Set<Cell<R, C, V2>> {
493 if (obj instanceof Cell) {
494 Cell<?, ?, ?> cell = (Cell<?, ?, ?>) obj;
496 cell.getValue(), get(cell.getRowKey(), cell.getColumnKey()))) {
499 return cell.getValue() != null
500 || fromTable.contains(cell.getRowKey(), cell.getColumnKey());
506 Cell<?, ?, ?> cell = (Cell<?, ?, ?>) obj;
507 fromTable.remove(cell.getRowKey(), cell.getColumnKey());
516 @Override public Set<Cell<R, C, V2>> cellSet() {
623 public Set<Cell<R, C, V>> cellSet() {