*/
package org.opendaylight.controller.cluster.datastore.persisted;
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
import java.util.Collection;
import java.util.Optional;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
private final ModificationType type;
protected AbstractDataTreeCandidateNode(final ModificationType type) {
- this.type = Preconditions.checkNotNull(type);
+ this.type = requireNonNull(type);
}
@Override
- public final DataTreeCandidateNode getModifiedChild(final PathArgument identifier) {
+ public final Optional<DataTreeCandidateNode> getModifiedChild(final PathArgument identifier) {
throw new UnsupportedOperationException("Not implemented");
}