try_split


Description:

public abstract Spliterator<G>? try_split ()

If this spliterator can be partitioned, returns a spliterator covering some elements that will not be covered by this spliterator. otherwise, returns null.

The returned spliterator must cover a prefix of the elements if the data source has an encounter order.

The returned spliterator could not 'own' its elements. (no 'ownership'; i.e. unowned)

This method may return null for any reason, including emptiness, data structure constraints, and efficiency considerations.

Note. An ideal efficient work of try_split method is dividing its elements exactly in half.

Returns:

a partition of this spliterator.