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:
Sean Gilligan 2023-09-12 09:38:11 -07:00 committed by Andreas Schildbach
parent bd52545fb7
commit 0597c3383f

View file

@ -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