2 * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.binding.api.query;
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.binding.DataObject;
15 * Basic builder for a match of a leaf value.
17 * @param <T> query result type
18 * @param <V> value type
21 public interface ValueMatchBuilder<T extends DataObject, V> {
23 * Match any existing value.
25 * @return A ValueMatch
27 @NonNull ValueMatch<T> nonNull();
32 * @param value value to match
33 * @return A ValueMatch
34 * @throws NullPointerException if value is null
36 @NonNull ValueMatch<T> valueEquals(@NonNull V value);