Collectors.ToUnmodifiableList Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Collector
that accumulates the input elements into an
unmodifiable List in encounter
order.
[Android.Runtime.Register("toUnmodifiableList", "()Ljava/util/stream/Collector;", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.Streams.ICollector? ToUnmodifiableList ();
[<Android.Runtime.Register("toUnmodifiableList", "()Ljava/util/stream/Collector;", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member ToUnmodifiableList : unit -> Java.Util.Streams.ICollector
Returns
a Collector
that accumulates the input elements into an
unmodifiable List in encounter order
- Attributes
Remarks
Returns a Collector
that accumulates the input elements into an unmodifiable List in encounter order. The returned Collector disallows null values and will throw NullPointerException
if it is presented with a null value.
Added in 10.
Java documentation for java.util.stream.Collectors.toUnmodifiableList()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.