iterator property Null safety

Iterator<E> iterator
override

Provides an iterator that iterates over the elements of this set.

The order of iteration is unspecified, but is consistent between changes to the set.

Implementation

Iterator<E> get iterator;