java.lang.Object
com.maxmind.db.Networks<T>
- Type Parameters:
T
- The type of data returned by the iterator.
- All Implemented Interfaces:
Iterator<DatabaseRecord<T>>
Instances of this class provide an iterator over the networks in a database.
The iterator will return a
DatabaseRecord
for each network.-
Method Details
-
next
Returns the next DataRecord.- Specified by:
next
in interfaceIterator<T>
- Returns:
- The next DataRecord.
- Throws:
NetworksIterationException
- An exception when iterating over the networks.
-
hasNext
public boolean hasNext()hasNext prepares the next network for reading with the Network method. It returns true if there is another network to be processed and false if there are no more networks.- Specified by:
hasNext
in interfaceIterator<T>
- Returns:
- boolean True if there is another network to be processed.
- Throws:
NetworksIterationException
- Exception while iterating over the networks.
-