@ Override public Iterator < E > iterator ( ) { return new AbstractIterator < E > ( ) { private final int length = length ( ) ; private int index = 0 ; @ Override protected E computeNext ( ) { int p = index ++ ; if ( p < length ) { return get ( p ) ; } return endOfData ( ) ; } } ; }
Iterator over all present inhabitants of ordinal domain .