ordinal/src/org/immutables/ordinal/OrdinalDomain.java
@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();
      }
    };
  }
@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.
@return snapshot iterator of elements in ordinal domain.