@Override public Long next() { if (hasNext()) { return current++; } else { throw new NoSuchElementException("Highest id of " + to + " was reached before"); } }
/** * Return a read-only {@link Iterator} which contains all msn/uid which fail in the specified range. * * @return rangeIt */ @Override public Iterator<Long> iterator() { long from = getLowVal(); if (from == Long.MAX_VALUE) { from = 1; } long to = getHighVal(); return new RangeIterator(from, to); }
/** * Return a read-only {@link Iterator} which contains all msn/uid which fail in the specified range. * * @return rangeIt */ @Override public Iterator<Long> iterator() { long from = getLowVal(); if (from == Long.MAX_VALUE) { from = 1; } long to = getHighVal(); return new RangeIterator(from, to); }
@Override public Long next() { if (hasNext()) { return current++; } else { throw new NoSuchElementException("Highest id of " + to + " was reached before"); } }