MCPcopy Index your code
hub / github.com/antlr/codebuff / ForwardingTable

Class ForwardingTable

corpus/java/training/guava/collect/ForwardingTable.java:35–149  ·  view source on GitHub ↗

A table which forwards all its method calls to another table. Subclasses should override one or more methods to modify the behavior of the backing map as desired per the decorator pattern . @author Gregory Kick @since 7.0

Source from the content-addressed store, hash-verified

33 * @since 7.0
34 */
35@GwtCompatible
36public abstract class ForwardingTable<R, C, V> extends ForwardingObject implements Table<R, C, V> {
37 /** Constructor for use by subclasses. */
38 protected ForwardingTable() {}
39
40 @Override
41 protected abstract Table<R, C, V> delegate();
42
43 @Override
44 public Set<Cell<R, C, V>> cellSet() {
45 return delegate().cellSet();
46 }
47
48 @Override
49 public void clear() {
50 delegate().clear();
51 }
52
53 @Override
54 public Map<R, V> column(C columnKey) {
55 return delegate().column(columnKey);
56 }
57
58 @Override
59 public Set<C> columnKeySet() {
60 return delegate().columnKeySet();
61 }
62
63 @Override
64 public Map<C, Map<R, V>> columnMap() {
65 return delegate().columnMap();
66 }
67
68 @Override
69 public boolean contains(Object rowKey, Object columnKey) {
70 return delegate().contains(rowKey, columnKey);
71 }
72
73 @Override
74 public boolean containsColumn(Object columnKey) {
75 return delegate().containsColumn(columnKey);
76 }
77
78 @Override
79 public boolean containsRow(Object rowKey) {
80 return delegate().containsRow(rowKey);
81 }
82
83 @Override
84 public boolean containsValue(Object value) {
85 return delegate().containsValue(value);
86 }
87
88 @Override
89 public V get(Object rowKey, Object columnKey) {
90 return delegate().get(rowKey, columnKey);
91 }
92

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected