mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
CoinSelector: mark as functional interface
The `@FunctionalInterface` annotation doesn't change behavior of `CoinSelector` in any way. It just declares our intention that it be used as a functional interface and will generate compiler errors if someone changes the code so that it is no longer a SAM type.
This commit is contained in:
parent
bd52545fb7
commit
0597c3383f
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ import static java.util.stream.Collectors.collectingAndThen;
|
|||
* may return a {@link CoinSelection} that has a valueGathered lower than the requested target, if there's not
|
||||
* enough money in the wallet.
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface CoinSelector {
|
||||
/**
|
||||
* Creates a CoinSelection that tries to meet the target amount of value. The candidates list is given to
|
||||
|
|
Loading…
Add table
Reference in a new issue