Package org.bitcoinj.base.internal
Class StreamUtils
java.lang.Object
org.bitcoinj.base.internal.StreamUtils
Stream Utilities. Bitcoinj is moving towards functional-style programming, immutable data structures, and
 unmodifiable lists. Since we are currently limited to Java 8, this class contains utility methods that can simplify
 code in many places.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturn a collector that collects aStreaminto an unmodifiable list. 
- 
Constructor Details
- 
StreamUtils
public StreamUtils() 
 - 
 - 
Method Details
- 
toUnmodifiableList
Return a collector that collects aStreaminto an unmodifiable list.Java 10 provides
Collectors.toUnmodifiableList()and Java 16 providesStream.toList(). If those are not available, use this utility method. 
 -