All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.datakernel.common.inspector.ForwardingInspector Maven / Gradle / Ivy

package io.datakernel.common.inspector;

public abstract class ForwardingInspector> implements BaseInspector {
	protected final I next;

	protected ForwardingInspector(I next) {this.next = next;}

	@SuppressWarnings("unchecked")
	@Override
	public  T lookup(Class type) {
		return type.isAssignableFrom(this.getClass()) ? (T) this : next.lookup(type);
	}
}