2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.concepts;
10 import org.eclipse.jdt.annotation.NonNull;
13 * Implementation of this interface delegates all its calls to the delegate if not specified otherwise.
15 * @param <T> Type of delegate
17 public interface Delegator<T> {
19 * Return underlying delegate.
21 * @return underlying delegate.
23 @NonNull T getDelegate();