sdk-common / com.tomtom.online.sdk.common.functional / Iterators / of

of

@SafeVarargs static fun <T : Any!> of(@NonNull vararg values: T): MutableIterator<T>!

Returns an iterator for the supplied values. Passing a null value will result in a NullPointerException. The returned iterator doesn't support the remove operation.

Parameters

values - T: group of values for which an iterator is needed.

- type of the values pointed to by the iterator.

Exceptions

NullPointerException - if the array of values passed to the method is null.

Return
MutableIterator<T>!: instance of Iterator.