@Beta @NonNullByDefault public final class SingletonSpliterators extends Object
Spliterators containing a single element.| Modifier and Type | Method and Description |
|---|---|
static <T> Spliterator<T> |
immutableOf(T element)
Create a new
Spliterator reporting specified element. |
static <T> Spliterator<T> |
immutableOfNull()
Create a new
Spliterator reporting a null element. |
public static <T> Spliterator<T> immutableOf(T element)
Spliterator reporting specified element. It has the following characteristics:
T - the type of elements returned by this Spliteratorelement - Single element to reportNullPointerException - if element is nullpublic static <T> Spliterator<T> immutableOfNull()
Spliterator reporting a null element. It has the following characteristics:
Copyright © 2019 OpenDaylight. All rights reserved.