Home
last modified time | relevance | path

Searched refs:columnKey (Results 1 – 25 of 29) sorted by relevance

12

/external/guava/guava/src/com/google/common/collect/
DStandardTable.java79 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) { in contains() argument
80 return rowKey != null && columnKey != null && super.contains(rowKey, columnKey); in contains()
84 public boolean containsColumn(@Nullable Object columnKey) { in containsColumn() argument
85 if (columnKey == null) { in containsColumn()
89 if (safeContainsKey(map, columnKey)) { in containsColumn()
107 public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get() argument
108 return (rowKey == null || columnKey == null) ? null : super.get(rowKey, columnKey); in get()
143 public V put(R rowKey, C columnKey, V value) { in put() argument
145 checkNotNull(columnKey); in put()
147 return getOrCreate(rowKey).put(columnKey, value); in put()
[all …]
DForwardingTable.java52 public Map<R, V> column(C columnKey) { in column() argument
53 return delegate().column(columnKey); in column()
67 public boolean contains(Object rowKey, Object columnKey) { in contains() argument
68 return delegate().contains(rowKey, columnKey); in contains()
72 public boolean containsColumn(Object columnKey) { in containsColumn() argument
73 return delegate().containsColumn(columnKey); in containsColumn()
87 public V get(Object rowKey, Object columnKey) { in get() argument
88 return delegate().get(rowKey, columnKey); in get()
98 public V put(R rowKey, C columnKey, V value) { in put() argument
99 return delegate().put(rowKey, columnKey, value); in put()
[all …]
DTables.java149 @Nullable R rowKey, @Nullable C columnKey, @Nullable V value) {
150 return new ImmutableCell<>(rowKey, columnKey, value);
155 private final @Nullable C columnKey;
158 ImmutableCell(@Nullable R rowKey, @Nullable C columnKey, @Nullable V value) {
160 this.columnKey = columnKey;
171 return columnKey;
242 public Map<C, V> column(R columnKey) {
243 return original.row(columnKey);
257 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) {
258 return original.contains(columnKey, rowKey);
[all …]
DHashBasedTable.java109 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) { in contains() argument
110 return super.contains(rowKey, columnKey); in contains()
114 public boolean containsColumn(@Nullable Object columnKey) { in containsColumn() argument
115 return super.containsColumn(columnKey); in containsColumn()
129 public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get() argument
130 return super.get(rowKey, columnKey); in get()
140 public V remove(@Nullable Object rowKey, @Nullable Object columnKey) { in remove() argument
141 return super.remove(rowKey, columnKey); in remove()
DTable.java71 @Nullable @CompatibleWith("C") Object columnKey); in contains() argument
85 boolean containsColumn(@Nullable @CompatibleWith("C") Object columnKey); in containsColumn() argument
104 @Nullable @CompatibleWith("C") Object columnKey); in get() argument
143 V put(R rowKey, C columnKey, V value); in put() argument
164 @Nullable @CompatibleWith("C") Object columnKey); in remove() argument
190 Map<R, V> column(C columnKey); in column() argument
DAbstractTable.java44 public boolean containsColumn(@Nullable Object columnKey) { in containsColumn() argument
45 return Maps.safeContainsKey(columnMap(), columnKey); in containsColumn()
69 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) { in contains() argument
71 return row != null && Maps.safeContainsKey(row, columnKey); in contains()
75 public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get() argument
77 return (row == null) ? null : Maps.safeGet(row, columnKey); in get()
92 public V remove(@Nullable Object rowKey, @Nullable Object columnKey) { in remove() argument
94 return (row == null) ? null : Maps.safeRemove(row, columnKey); in remove()
99 public V put(R rowKey, C columnKey, V value) { in put() argument
100 return row(rowKey).put(columnKey, value); in put()
DSingletonImmutableTable.java35 SingletonImmutableTable(R rowKey, C columnKey, V value) { in SingletonImmutableTable() argument
37 this.singleColumnKey = checkNotNull(columnKey); in SingletonImmutableTable()
46 public ImmutableMap<R, V> column(C columnKey) { in column() argument
47 checkNotNull(columnKey); in column()
48 return containsColumn(columnKey) in column()
DArrayTable.java380 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) {
381 return containsRow(rowKey) && containsColumn(columnKey);
389 public boolean containsColumn(@Nullable Object columnKey) {
390 return columnKeyToIndex.containsKey(columnKey);
415 public V get(@Nullable Object rowKey, @Nullable Object columnKey) {
417 Integer columnIndex = columnKeyToIndex.get(columnKey);
437 public V put(R rowKey, C columnKey, @Nullable V value) {
439 checkNotNull(columnKey);
442 Integer columnIndex = columnKeyToIndex.get(columnKey);
443 checkArgument(columnIndex != null, "Column %s not in %s", columnKey, columnList);
[all …]
DImmutableTable.java185 public static <R, C, V> ImmutableTable<R, C, V> of(R rowKey, C columnKey, V value) { in of() argument
186 return new SingletonImmutableTable<>(rowKey, columnKey, value); in of()
234 static <R, C, V> Cell<R, C, V> cellOf(R rowKey, C columnKey, V value) { in cellOf() argument
237 checkNotNull(columnKey, "columnKey"), in cellOf()
298 public Builder<R, C, V> put(R rowKey, C columnKey, V value) { in put() argument
299 cells.add(cellOf(rowKey, columnKey, value)); in put()
398 public ImmutableMap<R, V> column(C columnKey) { in column() argument
399 checkNotNull(columnKey, "columnKey"); in column()
401 (ImmutableMap<R, V>) columnMap().get(columnKey), ImmutableMap.<R, V>of()); in column()
445 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) { in contains() argument
[all …]
DDenseImmutableTable.java66 C columnKey = cell.getColumnKey(); in DenseImmutableTable() local
68 int columnIndex = columnKeyToIndex.get(columnKey); in DenseImmutableTable()
70 checkNoDuplicate(rowKey, columnKey, existingValue, cell.getValue()); in DenseImmutableTable()
247 public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get() argument
249 Integer columnIndex = columnKeyToIndex.get(columnKey); in get()
263 C columnKey = columnKeySet().asList().get(columnIndex); in getCell() local
265 return cellOf(rowKey, columnKey, value); in getCell()
DSparseImmutableTable.java61 C columnKey = cell.getColumnKey(); in SparseImmutableTable() local
67 V oldValue = thisRow.put(columnKey, value); in SparseImmutableTable()
68 checkNoDuplicate(rowKey, columnKey, oldValue, value); in SparseImmutableTable()
69 columns.get(columnKey).put(rowKey, value); in SparseImmutableTable()
/external/guava/android/guava/src/com/google/common/collect/
DStandardTable.java77 public boolean contains(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in contains() argument
78 return rowKey != null && columnKey != null && super.contains(rowKey, columnKey); in contains()
82 public boolean containsColumn(@NullableDecl Object columnKey) { in containsColumn() argument
83 if (columnKey == null) { in containsColumn()
87 if (safeContainsKey(map, columnKey)) { in containsColumn()
105 public V get(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in get() argument
106 return (rowKey == null || columnKey == null) ? null : super.get(rowKey, columnKey); in get()
141 public V put(R rowKey, C columnKey, V value) { in put() argument
143 checkNotNull(columnKey); in put()
145 return getOrCreate(rowKey).put(columnKey, value); in put()
[all …]
DForwardingTable.java52 public Map<R, V> column(C columnKey) { in column() argument
53 return delegate().column(columnKey); in column()
67 public boolean contains(Object rowKey, Object columnKey) { in contains() argument
68 return delegate().contains(rowKey, columnKey); in contains()
72 public boolean containsColumn(Object columnKey) { in containsColumn() argument
73 return delegate().containsColumn(columnKey); in containsColumn()
87 public V get(Object rowKey, Object columnKey) { in get() argument
88 return delegate().get(rowKey, columnKey); in get()
98 public V put(R rowKey, C columnKey, V value) { in put() argument
99 return delegate().put(rowKey, columnKey, value); in put()
[all …]
DTables.java62 @NullableDecl R rowKey, @NullableDecl C columnKey, @NullableDecl V value) { in immutableCell() argument
63 return new ImmutableCell<>(rowKey, columnKey, value); in immutableCell()
68 @NullableDecl private final C columnKey; field in Tables.ImmutableCell
71 ImmutableCell(@NullableDecl R rowKey, @NullableDecl C columnKey, @NullableDecl V value) { in ImmutableCell() argument
73 this.columnKey = columnKey; in ImmutableCell()
84 return columnKey; in getColumnKey()
155 public Map<C, V> column(R columnKey) { in column() argument
156 return original.row(columnKey); in column()
170 public boolean contains(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in contains() argument
171 return original.contains(columnKey, rowKey); in contains()
[all …]
DHashBasedTable.java109 public boolean contains(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in contains() argument
110 return super.contains(rowKey, columnKey); in contains()
114 public boolean containsColumn(@NullableDecl Object columnKey) { in containsColumn() argument
115 return super.containsColumn(columnKey); in containsColumn()
129 public V get(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in get() argument
130 return super.get(rowKey, columnKey); in get()
140 public V remove(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in remove() argument
141 return super.remove(rowKey, columnKey); in remove()
DAbstractTable.java43 public boolean containsColumn(@NullableDecl Object columnKey) { in containsColumn() argument
44 return Maps.safeContainsKey(columnMap(), columnKey); in containsColumn()
68 public boolean contains(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in contains() argument
70 return row != null && Maps.safeContainsKey(row, columnKey); in contains()
74 public V get(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in get() argument
76 return (row == null) ? null : Maps.safeGet(row, columnKey); in get()
91 public V remove(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in remove() argument
93 return (row == null) ? null : Maps.safeRemove(row, columnKey); in remove()
98 public V put(R rowKey, C columnKey, V value) { in put() argument
99 return row(rowKey).put(columnKey, value); in put()
DImmutableTable.java52 public static <R, C, V> ImmutableTable<R, C, V> of(R rowKey, C columnKey, V value) { in of() argument
53 return new SingletonImmutableTable<>(rowKey, columnKey, value); in of()
101 static <R, C, V> Cell<R, C, V> cellOf(R rowKey, C columnKey, V value) { in cellOf() argument
104 checkNotNull(columnKey, "columnKey"), in cellOf()
165 public Builder<R, C, V> put(R rowKey, C columnKey, V value) { in put() argument
166 cells.add(cellOf(rowKey, columnKey, value)); in put()
255 public ImmutableMap<R, V> column(C columnKey) { in column() argument
256 checkNotNull(columnKey, "columnKey"); in column()
258 (ImmutableMap<R, V>) columnMap().get(columnKey), ImmutableMap.<R, V>of()); in column()
302 public boolean contains(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in contains() argument
[all …]
DTable.java71 @NullableDecl @CompatibleWith("C") Object columnKey); in contains() argument
85 boolean containsColumn(@NullableDecl @CompatibleWith("C") Object columnKey); in containsColumn() argument
104 @NullableDecl @CompatibleWith("C") Object columnKey); in get() argument
143 V put(R rowKey, C columnKey, V value); in put() argument
164 @NullableDecl @CompatibleWith("C") Object columnKey); in remove() argument
190 Map<R, V> column(C columnKey); in column() argument
DSingletonImmutableTable.java35 SingletonImmutableTable(R rowKey, C columnKey, V value) { in SingletonImmutableTable() argument
37 this.singleColumnKey = checkNotNull(columnKey); in SingletonImmutableTable()
46 public ImmutableMap<R, V> column(C columnKey) { in column() argument
47 checkNotNull(columnKey); in column()
48 return containsColumn(columnKey) in column()
DArrayTable.java376 public boolean contains(@NullableDecl Object rowKey, @NullableDecl Object columnKey) {
377 return containsRow(rowKey) && containsColumn(columnKey);
385 public boolean containsColumn(@NullableDecl Object columnKey) {
386 return columnKeyToIndex.containsKey(columnKey);
411 public V get(@NullableDecl Object rowKey, @NullableDecl Object columnKey) {
413 Integer columnIndex = columnKeyToIndex.get(columnKey);
433 public V put(R rowKey, C columnKey, @NullableDecl V value) {
435 checkNotNull(columnKey);
438 Integer columnIndex = columnKeyToIndex.get(columnKey);
439 checkArgument(columnIndex != null, "Column %s not in %s", columnKey, columnList);
[all …]
DDenseImmutableTable.java66 C columnKey = cell.getColumnKey(); in DenseImmutableTable() local
68 int columnIndex = columnKeyToIndex.get(columnKey); in DenseImmutableTable()
70 checkNoDuplicate(rowKey, columnKey, existingValue, cell.getValue()); in DenseImmutableTable()
248 public V get(@NullableDecl Object rowKey, @NullableDecl Object columnKey) { in get() argument
250 Integer columnIndex = columnKeyToIndex.get(columnKey); in get()
264 C columnKey = columnKeySet().asList().get(columnIndex); in getCell() local
266 return cellOf(rowKey, columnKey, value); in getCell()
DSparseImmutableTable.java61 C columnKey = cell.getColumnKey(); in SparseImmutableTable() local
67 V oldValue = thisRow.put(columnKey, value); in SparseImmutableTable()
68 checkNoDuplicate(rowKey, columnKey, oldValue, value); in SparseImmutableTable()
69 columns.get(columnKey).put(rowKey, value); in SparseImmutableTable()
DSynchronized.java1854 public boolean contains(@NullableDecl Object rowKey, @NullableDecl Object columnKey) {
1856 return delegate().contains(rowKey, columnKey);
1868 public boolean containsColumn(@NullableDecl Object columnKey) {
1870 return delegate().containsColumn(columnKey);
1882 public V get(@NullableDecl Object rowKey, @NullableDecl Object columnKey) {
1884 return delegate().get(rowKey, columnKey);
1910 public V put(@NullableDecl R rowKey, @NullableDecl C columnKey, @NullableDecl V value) {
1912 return delegate().put(rowKey, columnKey, value);
1924 public V remove(@NullableDecl Object rowKey, @NullableDecl Object columnKey) {
1926 return delegate().remove(rowKey, columnKey);
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DSynchronizedTableTest.java86 public Map<R, V> column(C columnKey) { in column() argument
88 return delegate.column(columnKey); in column()
104 public boolean contains(Object rowKey, Object columnKey) { in contains() argument
106 return delegate.contains(rowKey, columnKey); in contains()
110 public boolean containsColumn(Object columnKey) { in containsColumn() argument
112 return delegate.containsColumn(columnKey); in containsColumn()
122 public V get(Object rowKey, Object columnKey) { in get() argument
124 return delegate.get(rowKey, columnKey); in get()
128 public V put(R rowKey, C columnKey, V value) { in put() argument
130 return delegate.put(rowKey, columnKey, value); in put()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DSynchronizedTableTest.java86 public Map<R, V> column(C columnKey) { in column() argument
88 return delegate.column(columnKey); in column()
104 public boolean contains(Object rowKey, Object columnKey) { in contains() argument
106 return delegate.contains(rowKey, columnKey); in contains()
110 public boolean containsColumn(Object columnKey) { in containsColumn() argument
112 return delegate.containsColumn(columnKey); in containsColumn()
122 public V get(Object rowKey, Object columnKey) { in get() argument
124 return delegate.get(rowKey, columnKey); in get()
128 public V put(R rowKey, C columnKey, V value) { in put() argument
130 return delegate.put(rowKey, columnKey, value); in put()
[all …]

12