Equity will not take cognizance of a plain legal right where an adequate and complete remedy is provided by law; but the mere privilege of a party to bring an action at law or the existence of a common-law remedy not as complete or effectual as the equitable relief shall not deprive equity of jurisdiction.