package com.matthewmitchell.nubitsj.wallet;
import com.matthewmitchell.nubitsj.core.TransactionOutput;
import com.matthewmitchell.nubitsj.core.Coin;
import java.util.Collection;
/**
* Represents the results of a
* {@link CoinSelector#select(Coin, java.util.List)} operation. A
* coin selection represents a list of spendable transaction outputs that sum together to give valueGathered.
* Different coin selections could be produced by different coin selectors from the same input set, according
* to their varying policies.
*/
public class CoinSelection {
public Coin valueGathered;
public Collection<TransactionOutput> gathered;
public CoinSelection(Coin valueGathered, Collection<TransactionOutput> gathered) {
this.valueGathered = valueGathered;
this.gathered = gathered;
}
}