PathPaymentStrictReceiveOperation constructor
Implementation
PathPaymentStrictReceiveOperation(
Asset sendAsset,
String sendMax,
MuxedAccount destination,
Asset destAsset,
String destAmount,
List<Asset> path) {
this._sendAsset = checkNotNull(sendAsset, "sendAsset cannot be null");
this._sendMax = checkNotNull(sendMax, "sendMax cannot be null");
this._destination = checkNotNull(destination, "destination cannot be null");
this._destAsset = checkNotNull(destAsset, "destAsset cannot be null");
this._destAmount = checkNotNull(destAmount, "destAmount cannot be null");
if (path == null) {
this._path = List<Asset>(0);
} else {
checkArgument(
path.length <= 5, "The maximum number of assets in the path is 5");
this._path = path;
}
}