Package org.ldk.structs
Class UtxoResult
- java.lang.Object
-
- org.ldk.structs.UtxoResult
-
- Direct Known Subclasses:
UtxoResult.Async,UtxoResult.Sync
public class UtxoResult extends Object
The result of a [`UtxoLookup::get_utxo`] call. A call may resolve either synchronously, returning the `Sync` variant, or asynchronously, returning an [`UtxoFuture`] in the `Async` variant.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUtxoResult.AsyncA result which will be resolved asynchronously.static classUtxoResult.SyncA result which was resolved synchronously.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UtxoResultasync(UtxoFuture a)Utility method to constructs a new Async-variant UtxoResultUtxoResultclone()Creates a copy of the UtxoResultprotected voidfinalize()static UtxoResultsync(Result_TxOutUtxoLookupErrorZ a)Utility method to constructs a new Sync-variant UtxoResult
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public UtxoResult clone()
Creates a copy of the UtxoResult
-
sync
public static UtxoResult sync(Result_TxOutUtxoLookupErrorZ a)
Utility method to constructs a new Sync-variant UtxoResult
-
async
public static UtxoResult async(UtxoFuture a)
Utility method to constructs a new Async-variant UtxoResult
-
-