2 * Copyright (c) 2014 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.openflowplugin.extension.api;
10 import org.opendaylight.yangtools.yang.binding.Augmentable;
11 import org.opendaylight.yangtools.yang.binding.Augmentation;
14 * Wrapper over augmentation and it's type in order to ease handing over and hooking of an augmentation
15 * @param <E> augmentable type where wrapped augmentation belongs
17 public class AugmentTuple<E extends Augmentable<E>> {
19 private final Augmentation<E> augmentationObject;
20 private final Class<? extends Augmentation<E>> augmentationClass;
23 * @param augmentationClass
24 * @param augmentationObject
26 public AugmentTuple(Class<? extends Augmentation<E>> augmentationClass, Augmentation<E> augmentationObject) {
27 this.augmentationClass = augmentationClass;
28 this.augmentationObject = augmentationObject;
32 * @return instance of wrapped augmentation
34 public Augmentation<E> getAugmentationObject() {
35 return augmentationObject;
39 * @return type of wrapped augmentation
41 public Class<? extends Augmentation<E>> getAugmentationClass() {
42 return augmentationClass;