+ /**
+ * Type specializing {@link InstanceNotification} for a particular type.
+ *
+ * @param parent Type of parent defining the notification
+ * @return A parameterized type corresponding to {@code InstanceNotification<Parent>}
+ * @throws NullPointerException if {@code parent} is is null
+ */
+ public static ParameterizedType instanceNotification(final Type concreteType, final Type parent) {
+ return parameterizedTypeFor(INSTANCE_NOTIFICATION, concreteType, parent);
+ }
+
+ /**
+ * Type specializing {@link InstanceNotification} for a particular type.
+ *
+ * @param parent Type of parent defining the notification
+ * @param keyType Type of parent's key
+ * @return A parameterized type corresponding to {@code KeyedInstanceNotification<ParentKey, Parent>}
+ * @throws NullPointerException if any argument is is null
+ */
+ public static ParameterizedType keyedListNotification(final Type concreteType, final Type parent,
+ final Type keyType) {
+ return parameterizedTypeFor(KEYED_LIST_NOTIFICATION, concreteType, parent, keyType);
+ }
+