Add BindingTypes.augmentation()
[mdsal.git] / binding / mdsal-binding-generator-util / src / main / java / org / opendaylight / mdsal / binding / model / util / BindingTypes.java
index 250ca03e228b87583f2d9ed0dc7ae13bf07537d0..a61359edf630185b58e95f5789f1f90646377d57 100644 (file)
@@ -148,6 +148,17 @@ public final class BindingTypes {
         return parameterizedTypeFor(AUGMENTABLE, type);
     }
 
+    /**
+     * Specialize {@link Augmentation} for a particular type.
+     *
+     * @param type Type for which to specialize
+     * @return A parameterized type corresponding to {@code Augmentation<Type>}
+     * @throws NullPointerException if {@code type} is null
+     */
+    public static @NonNull ParameterizedType augmentation(final Type type) {
+        return parameterizedTypeFor(AUGMENTATION, type);
+    }
+
     /**
      * Specialize {@link ChildOf} for a particular type.
      *