X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=protocol%2Frestconf-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fapi%2FFormatParameters.java;fp=protocol%2Frestconf-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fapi%2FFormatParameters.java;h=0000000000000000000000000000000000000000;hb=36b7055c4730b406ded47936641855466f574f9f;hp=7a1738ce41fa1236d347382f064003cc568fb124;hpb=4e2e5beb0ab9fa93b74ea1ce97969cf15257630f;p=netconf.git diff --git a/protocol/restconf-api/src/main/java/org/opendaylight/restconf/api/FormatParameters.java b/protocol/restconf-api/src/main/java/org/opendaylight/restconf/api/FormatParameters.java deleted file mode 100644 index 7a1738ce41..0000000000 --- a/protocol/restconf-api/src/main/java/org/opendaylight/restconf/api/FormatParameters.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2024 PANTHEON.tech, s.r.o. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * 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.api; - -import static java.util.Objects.requireNonNull; - -import org.eclipse.jdt.annotation.NonNullByDefault; -import org.opendaylight.restconf.api.query.PrettyPrintParam; -import org.opendaylight.restconf.api.query.RestconfQueryParam; -import org.opendaylight.yangtools.concepts.Immutable; - -/** - * The set of {@link RestconfQueryParam}s governing output formatting. - * - * @param prettyPrint the {@link PrettyPrintParam} parameter - */ -@NonNullByDefault -public record FormatParameters(PrettyPrintParam prettyPrint) implements Immutable { - public static final FormatParameters COMPACT = new FormatParameters(PrettyPrintParam.FALSE); - public static final FormatParameters PRETTY = new FormatParameters(PrettyPrintParam.TRUE); - - /** - * Return the {@link PrettyPrintParam} parameter. - */ - public FormatParameters { - requireNonNull(prettyPrint); - } -}