Package org.bitcoinj.utils
Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files,
a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
-
Interface Summary Interface Description ListenableCompletionStage<V> ACompletionStage
with aListenableFuture
-compatible interface to smooth migration from GuavaListenableFuture
toCompletableFuture
/CompletionStage
.TaggableObject Deprecated. Applications should use another mechanism to persist application state data -
Class Summary Class Description AppDataDirectory Find/create App Data Directory in correct platform-specific location.BaseTaggableObject Deprecated. Applications should use another mechanism to persist application state dataBlockFileLoader This class reads block files stored in the Bitcoin Core format.BriefLogFormatter A Java logging formatter that writes more compact output than the default.BtcAutoFormat This class, a concrete extension ofBtcFormat
, is distinguished by its accommodation of multiple denominational units as follows:BtcFixedFormat This class, a concrete extension ofBtcFormat
, is distinguished in that each instance formats and by-default parses all Bitcoin monetary values in units of a single denomination that is specified at the time that instance is constructed.BtcFormat Instances of this class format and parse locale-specific numerical representations of Bitcoin monetary values.BtcFormat.Builder This class constructs new instances ofBtcFormat
, allowing for the configuration of those instances before they are constructed.ContextPropagatingThreadFactory AThreadFactory
that propagates aContext
from the creating thread into the new thread.DaemonThreadFactory Thread factory whose threads are marked as daemon and won't prevent process exit.ExchangeRate ExponentialBackoff Tracks successes and failures and calculates a time to retry the operation.ExponentialBackoff.Params Parameters to configure a particular kind of exponential backoff.ListenableCompletableFuture<V> ACompletableFuture
that is also aListenableFuture
for migration from GuavaListenableFuture
toCompletableFuture
.ListenerRegistration<T> A simple wrapper around a listener and an executor, with some utility methods.Threading Various threading related utilities.Threading.UserThread VersionTally Caching counter for the block versions within a moving window. -
Enum Summary Enum Description BtcAutoFormat.Style Enum for specifying the style of currency indicators that are used when formatting, either codes or symbols.