public class DefaultScriptUtxoSelection extends java.lang.Object implements ScriptUtxoSelection
| Constructor and Description |
|---|
DefaultScriptUtxoSelection(UtxoService utxoService) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Utxo> |
findAll(java.lang.String scriptAddress,
java.util.function.Predicate<Utxo> predicate)
Find all utxos matching the predicate
|
java.util.List<Utxo> |
findAll(java.lang.String scriptAddress,
java.util.function.Predicate<Utxo> predicate,
java.util.Set<Utxo> excludeUtxos)
Find all utxos matching the predicate
|
Utxo |
findFirst(java.lang.String scriptAddress,
java.util.function.Predicate<Utxo> predicate)
Find the first utxo matching the predicate
|
Utxo |
findFirst(java.lang.String scriptAddress,
java.util.function.Predicate<Utxo> predicate,
java.util.Set<Utxo> excludeUtxos)
Find the first utxo matching the predicate
|
public DefaultScriptUtxoSelection(UtxoService utxoService)
public Utxo findFirst(java.lang.String scriptAddress, java.util.function.Predicate<Utxo> predicate) throws ApiException
ScriptUtxoSelectionfindFirst in interface ScriptUtxoSelectionscriptAddress - Script addresspredicate - Predicate to filter utxosApiExceptionpublic Utxo findFirst(java.lang.String scriptAddress, java.util.function.Predicate<Utxo> predicate, java.util.Set<Utxo> excludeUtxos) throws ApiException
ScriptUtxoSelectionfindFirst in interface ScriptUtxoSelectionscriptAddress - Script addresspredicate - Predicate to filter utxosexcludeUtxos - Utxos to excludeApiExceptionpublic java.util.List<Utxo> findAll(java.lang.String scriptAddress, java.util.function.Predicate<Utxo> predicate) throws ApiException
ScriptUtxoSelectionfindAll in interface ScriptUtxoSelectionscriptAddress - Script addresspredicate - Predicate to filter utxosApiExceptionpublic java.util.List<Utxo> findAll(java.lang.String scriptAddress, java.util.function.Predicate<Utxo> predicate, java.util.Set<Utxo> excludeUtxos) throws ApiException
ScriptUtxoSelectionfindAll in interface ScriptUtxoSelectionscriptAddress - ScriptAddress Script addresspredicate - Predicate Predicate to filter utxosexcludeUtxos - Utxos to excludeApiException