Home
last modified time | relevance | path

Searched refs:rowKey (Results 1 – 16 of 16) sorted by relevance

/external/guava/guava/src/com/google/common/collect/
DForwardingTable.java68 public boolean contains(Object rowKey, Object columnKey) { in contains() argument
69 return delegate().contains(rowKey, columnKey); in contains()
78 public boolean containsRow(Object rowKey) { in containsRow() argument
79 return delegate().containsRow(rowKey); in containsRow()
88 public V get(Object rowKey, Object columnKey) { in get() argument
89 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()
108 public V remove(Object rowKey, Object columnKey) { in remove() argument
109 return delegate().remove(rowKey, columnKey); in remove()
[all …]
DTables.java66 @Nullable R rowKey, @Nullable C columnKey, @Nullable V value) { in immutableCell()
67 return new ImmutableCell<R, C, V>(rowKey, columnKey, value); in immutableCell()
72 private final R rowKey; field in Tables.ImmutableCell
77 @Nullable R rowKey, @Nullable C columnKey, @Nullable V value) { in ImmutableCell()
78 this.rowKey = rowKey; in ImmutableCell()
85 return rowKey; in getRowKey()
174 @Nullable Object rowKey, @Nullable Object columnKey) { in contains()
175 return original.contains(columnKey, rowKey); in contains()
184 public boolean containsRow(@Nullable Object rowKey) { in containsRow() argument
185 return original.containsColumn(rowKey); in containsRow()
[all …]
DStandardTable.java80 @Nullable Object rowKey, @Nullable Object columnKey) { in contains()
81 return rowKey != null && columnKey != null && super.contains(rowKey, columnKey); in contains()
96 @Override public boolean containsRow(@Nullable Object rowKey) { in containsRow() argument
97 return rowKey != null && safeContainsKey(backingMap, rowKey); in containsRow()
104 @Override public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get() argument
105 return (rowKey == null || columnKey == null) in get()
107 : super.get(rowKey, columnKey); in get()
128 private Map<C, V> getOrCreate(R rowKey) { in getOrCreate() argument
129 Map<C, V> map = backingMap.get(rowKey); in getOrCreate()
132 backingMap.put(rowKey, map); in getOrCreate()
[all …]
DHashBasedTable.java118 @Nullable Object rowKey, @Nullable Object columnKey) { in contains()
119 return super.contains(rowKey, columnKey); in contains()
126 @Override public boolean containsRow(@Nullable Object rowKey) { in containsRow() argument
127 return super.containsRow(rowKey); in containsRow()
134 @Override public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get() argument
135 return super.get(rowKey, columnKey); in get()
143 @Nullable Object rowKey, @Nullable Object columnKey) { in remove()
144 return super.remove(rowKey, columnKey); in remove()
DImmutableTable.java61 public static <R, C, V> ImmutableTable<R, C, V> of(R rowKey, in of() argument
63 return new SingletonImmutableTable<R, C, V>(rowKey, columnKey, value); in of()
126 static <R, C, V> Cell<R, C, V> cellOf(R rowKey, C columnKey, V value) { in cellOf() argument
127 return Tables.immutableCell(checkNotNull(rowKey), checkNotNull(columnKey), in cellOf()
190 public Builder<R, C, V> put(R rowKey, C columnKey, V value) { in put() argument
191 cells.add(cellOf(rowKey, columnKey, value)); in put()
306 @Override public ImmutableMap<C, V> row(R rowKey) { in row() argument
307 checkNotNull(rowKey); in row()
309 (ImmutableMap<C, V>) rowMap().get(rowKey), in row()
326 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) { in contains() argument
[all …]
DAbstractTable.java37 public boolean containsRow(@Nullable Object rowKey) { in containsRow() argument
38 return Maps.safeContainsKey(rowMap(), rowKey); in containsRow()
67 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) { in contains() argument
68 Map<C, V> row = Maps.safeGet(rowMap(), rowKey); in contains()
73 public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get() argument
74 Map<C, V> row = Maps.safeGet(rowMap(), rowKey); in get()
89 public V remove(@Nullable Object rowKey, @Nullable Object columnKey) { in remove() argument
90 Map<C, V> row = Maps.safeGet(rowMap(), rowKey); in remove()
95 public V put(R rowKey, C columnKey, V value) { in put() argument
96 return row(rowKey).put(columnKey, value); in put()
DTable.java70 boolean contains(@Nullable Object rowKey, @Nullable Object columnKey); in contains() argument
78 boolean containsRow(@Nullable Object rowKey); in containsRow() argument
103 V get(@Nullable Object rowKey, @Nullable Object columnKey); in get() argument
143 V put(R rowKey, C columnKey, V value); in put() argument
162 V remove(@Nullable Object rowKey, @Nullable Object columnKey); in remove() argument
178 Map<C, V> row(R rowKey); in row() argument
DTreeBasedTable.java176 public SortedMap<C, V> row(R rowKey) { in row() argument
177 return new TreeRow(rowKey); in row()
184 TreeRow(R rowKey) { in TreeRow() argument
185 this(rowKey, null, null); in TreeRow()
188 TreeRow(R rowKey, @Nullable C lowerBound, @Nullable C upperBound) { in TreeRow() argument
189 super(rowKey); in TreeRow()
219 return new TreeRow(rowKey, fromKey, toKey); in subMap()
224 return new TreeRow(rowKey, lowerBound, toKey); in headMap()
229 return new TreeRow(rowKey, fromKey, upperBound); in tailMap()
256 || (wholeRow.isEmpty() && backingMap.containsKey(rowKey))) { in wholeRow()
[all …]
DArrayTable.java409 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) {
410 return containsRow(rowKey) && containsColumn(columnKey);
427 public boolean containsRow(@Nullable Object rowKey) {
428 return rowKeyToIndex.containsKey(rowKey);
444 public V get(@Nullable Object rowKey, @Nullable Object columnKey) {
445 Integer rowIndex = rowKeyToIndex.get(rowKey);
466 public V put(R rowKey, C columnKey, @Nullable V value) {
467 checkNotNull(rowKey);
469 Integer rowIndex = rowKeyToIndex.get(rowKey);
470 checkArgument(rowIndex != null, "Row %s not in %s", rowKey, rowList);
[all …]
DDenseImmutableTable.java66 R rowKey = cell.getRowKey(); in DenseImmutableTable() local
68 int rowIndex = rowKeyToIndex.get(rowKey); in DenseImmutableTable()
71 checkArgument(existingValue == null, "duplicate key: (%s, %s)", rowKey, columnKey); in DenseImmutableTable()
251 @Override public V get(@Nullable Object rowKey,
253 Integer rowIndex = rowKeyToIndex.get(rowKey);
268 R rowKey = rowKeySet().asList().get(rowIndex);
271 return cellOf(rowKey, columnKey, value);
DSparseImmutableTable.java53 R rowKey = cell.getRowKey(); in SparseImmutableTable() local
57 iterationOrderRow[i] = rowIndex.get(rowKey); in SparseImmutableTable()
58 Map<C, V> thisRow = rows.get(rowKey); in SparseImmutableTable()
62 throw new IllegalArgumentException("Duplicate value for row=" + rowKey + ", column=" in SparseImmutableTable()
65 columns.get(columnKey).put(rowKey, value); in SparseImmutableTable()
DSingletonImmutableTable.java36 SingletonImmutableTable(R rowKey, C columnKey, V value) { in SingletonImmutableTable() argument
37 this.singleRowKey = checkNotNull(rowKey); in SingletonImmutableTable()
/external/guava/guava-gwt/src/com/google/common/collect/
DImmutableTable_CustomFieldSerializerBase.java34 Object rowKey = reader.readObject(); in instantiate() local
37 builder.put(rowKey, reader.readObject(), reader.readObject()); in instantiate()
47 for (Object rowKey : table.rowKeySet()) { in serialize()
48 writer.writeObject(rowKey); in serialize()
49 Map_CustomFieldSerializerBase.serialize(writer, table.row(rowKey)); in serialize()
DSingletonImmutableTable_CustomFieldSerializer.java33 Object rowKey = reader.readObject(); in instantiate() local
36 return new SingletonImmutableTable<Object, Object, Object>(rowKey, columnKey, value); in instantiate()
DGwtSerializationDependencies.java125 R rowKey; field in GwtSerializationDependencies.ImmutableTableDependencies
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DArrayTable.java385 public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) {
386 return containsRow(rowKey) && containsColumn(columnKey);
403 public boolean containsRow(@Nullable Object rowKey) {
404 return rowKeyToIndex.containsKey(rowKey);
420 public V get(@Nullable Object rowKey, @Nullable Object columnKey) {
421 Integer rowIndex = rowKeyToIndex.get(rowKey);
442 public V put(R rowKey, C columnKey, @Nullable V value) {
443 checkNotNull(rowKey);
445 Integer rowIndex = rowKeyToIndex.get(rowKey);
446 checkArgument(rowIndex != null, "Row %s not in %s", rowKey, rowList);
[all …]