Top Fields Constructors Methods
com.github.javaparser.printer.lexicalpreservation

public Class WrappingRangeIterator

extends Object
implements Iterator<Integer>
Class Inheritance
All Implemented Interfaces
java.util.Iterator
Imports
java.util.Iterator

Field Summary

Modifier and TypeField and Description
private int
private final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.
public Integer
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentValueback to summary
private int currentValue
limitback to summary
private final int limit

Constructor Detail

WrappingRangeIteratorback to summary
public WrappingRangeIterator(int limit)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:boolean

true if the iteration has more elements

Annotations
@Override
nextback to summary
public Integer next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:Integer

the next element in the iteration

Annotations
@Override