*/
package org.opendaylight.yangtools.yang.common;
-import java.util.Collection;
+import java.util.List;
+import org.eclipse.jdt.annotation.NonNull;
/**
* Represents a general result of a call, request, or operation.
* @param <T> the result value type
*/
public interface RpcResult<T> {
-
/**
* Returns whether or not processing of the call was successful.
*
T getResult();
/**
- * Returns a set of errors and warnings which occurred during processing
- * the call.
+ * Returns a set of errors and warnings which occurred during processing the call.
*
- * @return a Collection of {@link RpcError}
+ * @return a list of {@link RpcError}s
*/
- Collection<RpcError> getErrors();
+ @NonNull List<RpcError> getErrors();
}