Introduce restconf.server.{api,spi,mdsal}
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / server / spi / TextParameters.java
similarity index 69%
rename from restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/TextParameters.java
rename to restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/spi/TextParameters.java
index 922911fccf2ea26232a1e4e0b7f4d572ffb5a7bf..df55cfca997508983b05b821dca734dfa6ee1a05 100644 (file)
@@ -5,9 +5,9 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.restconf.nb.rfc8040.streams;
+package org.opendaylight.restconf.server.spi;
 
-import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.jdt.annotation.NonNull;
 
 /**
  * Text formatting parameters.
@@ -18,7 +18,10 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
  *                             changed nodes
  * @param childNodesOnly {@code true} if this query should only notify about child node changes
  */
-@NonNullByDefault
-record TextParameters(boolean leafNodesOnly, boolean skipData, boolean changedLeafNodesOnly, boolean childNodesOnly) {
-    static final TextParameters EMPTY = new TextParameters(false, false, false, false);
+public record TextParameters(
+        boolean leafNodesOnly,
+        boolean skipData,
+        boolean changedLeafNodesOnly,
+        boolean childNodesOnly) {
+    public static final @NonNull TextParameters EMPTY = new TextParameters(false, false, false, false);
 }
\ No newline at end of file