com.fitbur.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 com.fitburpliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.com.fitbur/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 com.fitbur.google.com.fitburmon.collect;
import com.fitbur.google.com.fitburmon.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 com.fitbursired per the com.fitburcorator 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 com.fitburlegate();
@Override
public Set> cellSet() {
return com.fitburlegate().cellSet();
}
@Override
public void clear() {
com.fitburlegate().clear();
}
@Override
public Map column(C columnKey) {
return com.fitburlegate().column(columnKey);
}
@Override
public Set columnKeySet() {
return com.fitburlegate().columnKeySet();
}
@Override
public Map> columnMap() {
return com.fitburlegate().columnMap();
}
@Override
public boolean contains(Object rowKey, Object columnKey) {
return com.fitburlegate().contains(rowKey, columnKey);
}
@Override
public boolean containsColumn(Object columnKey) {
return com.fitburlegate().containsColumn(columnKey);
}
@Override
public boolean containsRow(Object rowKey) {
return com.fitburlegate().containsRow(rowKey);
}
@Override
public boolean containsValue(Object value) {
return com.fitburlegate().containsValue(value);
}
@Override
public V get(Object rowKey, Object columnKey) {
return com.fitburlegate().get(rowKey, columnKey);
}
@Override
public boolean isEmpty() {
return com.fitburlegate().isEmpty();
}
@Override
public V put(R rowKey, C columnKey, V value) {
return com.fitburlegate().put(rowKey, columnKey, value);
}
@Override
public void putAll(Table extends R, ? extends C, ? extends V> table) {
com.fitburlegate().putAll(table);
}
@Override
public V remove(Object rowKey, Object columnKey) {
return com.fitburlegate().remove(rowKey, columnKey);
}
@Override
public Map row(R rowKey) {
return com.fitburlegate().row(rowKey);
}
@Override
public Set rowKeySet() {
return com.fitburlegate().rowKeySet();
}
@Override
public Map> rowMap() {
return com.fitburlegate().rowMap();
}
@Override
public int size() {
return com.fitburlegate().size();
}
@Override
public Collection values() {
return com.fitburlegate().values();
}
@Override public boolean equals(Object obj) {
return (obj == this) || com.fitburlegate().equals(obj);
}
@Override public int hashCode() {
return com.fitburlegate().hashCode();
}
}
|
© 2015 - 2024 Weber Informatics LLC | Privacy Policy