*/
package org.opendaylight.controller.md.sal.dom.api;
+import com.google.common.collect.ImmutableSet;
import java.util.Set;
import javax.annotation.Nonnull;
* @throws NullPointerException if implementation or types is null
* @throws IllegalArgumentException if types is empty or contains a null element.
*/
- @Nonnull <T extends DOMRpcImplementation> DOMRpcImplementationRegistration<T> registerRpcImplementation(
- @Nonnull T implementation, @Nonnull DOMRpcIdentifier... rpcs);
+ default @Nonnull <T extends DOMRpcImplementation> DOMRpcImplementationRegistration<T> registerRpcImplementation(
+ @Nonnull final T implementation, @Nonnull final DOMRpcIdentifier... rpcs) {
+ return registerRpcImplementation(implementation, ImmutableSet.copyOf(rpcs));
+ }
/**
* Register an {@link DOMRpcImplementation} object with this service.