Seal ItemOrder and MutationBehaviour
[yangtools.git] / common / concepts / src / main / java / org / opendaylight / yangtools / concepts / MutationBehaviour.java
index 5aeec70bd872bab5e9447649a1e5fe2388839790..40e938e27e03692d9135c474299156245878756e 100644 (file)
@@ -8,15 +8,13 @@
 package org.opendaylight.yangtools.concepts;
 
 /**
- * Mutation behavior
- * 
- * This interface is used to prevent same class extends multiple types of MutationBehaviour
+ * Mutation behavior. This interface is used to prevent same class extends multiple types of MutationBehaviour
  * such as {@link Immutable} and {@link Mutable} which are mutually exclusive.
- * 
- * @author Tony Tkacik <ttkacik@cisco.com>
+ *
+ * @author Tony Tkacik
  *
  * @param <T> Mutation Type
  */
-public interface MutationBehaviour<T extends MutationBehaviour<T>> {
-
+sealed interface MutationBehaviour<T extends MutationBehaviour<T>> permits Immutable, Mutable {
+    // Marker interface only
 }