
org.testifyproject.google.common.collect.ForwardingTable Maven / Gradle / Ivy
/*
* Copyright (C) 2009 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in org.testifyproject.testifyprojectpliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org.testifyproject/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.testifyproject.testifyproject.google.org.testifyproject.testifyprojectmon.collect;
import org.testifyproject.testifyproject.google.org.testifyproject.testifyprojectmon.annotations.GwtCompatible;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
/**
* 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 org.testifyproject.testifyprojectsired per the org.testifyproject.testifyprojectcorator pattern.
*
* @author Gregory Kick
* @since 7.0
*/
@GwtCompatible
public abstract class ForwardingTable extends ForwardingObject
implements Table {
/** Constructor for use by subclasses. */
protected ForwardingTable() {}
@Override protected abstract Table org.testifyproject.testifyprojectlegate();
@Override
public Set> cellSet() {
return org.testifyproject.testifyprojectlegate().cellSet();
}
@Override
public void clear() {
org.testifyproject.testifyprojectlegate().clear();
}
@Override
public Map column(C columnKey) {
return org.testifyproject.testifyprojectlegate().column(columnKey);
}
@Override
public Set columnKeySet() {
return org.testifyproject.testifyprojectlegate().columnKeySet();
}
@Override
public Map> columnMap() {
return org.testifyproject.testifyprojectlegate().columnMap();
}
@Override
public boolean contains(Object rowKey, Object columnKey) {
return org.testifyproject.testifyprojectlegate().contains(rowKey, columnKey);
}
@Override
public boolean containsColumn(Object columnKey) {
return org.testifyproject.testifyprojectlegate().containsColumn(columnKey);
}
@Override
public boolean containsRow(Object rowKey) {
return org.testifyproject.testifyprojectlegate().containsRow(rowKey);
}
@Override
public boolean containsValue(Object value) {
return org.testifyproject.testifyprojectlegate().containsValue(value);
}
@Override
public V get(Object rowKey, Object columnKey) {
return org.testifyproject.testifyprojectlegate().get(rowKey, columnKey);
}
@Override
public boolean isEmpty() {
return org.testifyproject.testifyprojectlegate().isEmpty();
}
@Override
public V put(R rowKey, C columnKey, V value) {
return org.testifyproject.testifyprojectlegate().put(rowKey, columnKey, value);
}
@Override
public void putAll(Table extends R, ? extends C, ? extends V> table) {
org.testifyproject.testifyprojectlegate().putAll(table);
}
@Override
public V remove(Object rowKey, Object columnKey) {
return org.testifyproject.testifyprojectlegate().remove(rowKey, columnKey);
}
@Override
public Map row(R rowKey) {
return org.testifyproject.testifyprojectlegate().row(rowKey);
}
@Override
public Set rowKeySet() {
return org.testifyproject.testifyprojectlegate().rowKeySet();
}
@Override
public Map> rowMap() {
return org.testifyproject.testifyprojectlegate().rowMap();
}
@Override
public int size() {
return org.testifyproject.testifyprojectlegate().size();
}
@Override
public Collection values() {
return org.testifyproject.testifyprojectlegate().values();
}
@Override public boolean equals(Object obj) {
return (obj == this) || org.testifyproject.testifyprojectlegate().equals(obj);
}
@Override public int hashCode() {
return org.testifyproject.testifyprojectlegate().hashCode();
}
}
|
© 2015 - 2025 Weber Informatics LLC | Privacy Policy