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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn a collector that collects aStreaminto an unmodifiable list.
- 
Constructor Details- 
StreamUtilspublic StreamUtils()
 
- 
- 
Method Details- 
toUnmodifiableListReturn 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.
 
-