*/
package org.opendaylight.yangtools.yang.data.api.schema.tree;
+import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.jdt.annotation.Nullable;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
/**
* is limited to nodes which were affected by the modification from which
* this instance originated.
*/
+@NonNullByDefault
public interface DataTreeCandidate {
/**
* Get the candidate tree root node.
* equals implementation must result in identity comparison.
*/
@Override
- boolean equals(Object obj);
+ boolean equals(@Nullable Object obj);
}
*/
package org.opendaylight.yangtools.yang.data.api.schema.tree;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodeContainer;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
* @return A data tree instance.
* @throws NullPointerException if treeConfig is null
*/
- DataTree create(DataTreeConfiguration treeConfig);
+ @NonNull DataTree create(DataTreeConfiguration treeConfig);
/**
* Create a new data tree based on specified configuration, with a root node derived from the schema context lookup
* @throws IllegalArgumentException if tree configuration does not match the SchemaContext, for example by root path
* referring to a node which does not exist in the SchemaContext
*/
- DataTree create(DataTreeConfiguration treeConfig, SchemaContext initialSchemaContext);
+ @NonNull DataTree create(DataTreeConfiguration treeConfig, SchemaContext initialSchemaContext);
/**
* Create a new data tree based on specified configuration, with the specified node.
* @throws NullPointerException if any of the arguments are null
* @throws IllegalArgumentException if a mismatch between the arguments is detected
*/
- DataTree create(DataTreeConfiguration treeConfig, SchemaContext initialSchemaContext,
+ @NonNull DataTree create(DataTreeConfiguration treeConfig, SchemaContext initialSchemaContext,
NormalizedNodeContainer<?, ?, ?> initialRoot) throws DataValidationFailedException;
}
package org.opendaylight.yangtools.yang.data.api.schema.tree;
import java.util.Optional;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider;
*
* @return A new data tree modification
*/
- DataTreeModification newModification();
+ @NonNull DataTreeModification newModification();
}