Package net.mtrop.doom.object
Class BinaryObject.Scanner<BO extends BinaryObject>
java.lang.Object
net.mtrop.doom.object.BinaryObject.Scanner<BO>
- Type Parameters:
BO
- the BinaryObject type.
- All Implemented Interfaces:
AutoCloseable
,Iterator<BO>
- Enclosing interface:
- BinaryObject
public static class BinaryObject.Scanner<BO extends BinaryObject>
extends Object
implements Iterator<BO>, AutoCloseable
A deserializing scanner iterator that returns independent instances of objects.
- Since:
- 2.8.0, this class implements
AutoCloseable
.
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<BO extends BinaryObject>
-
next
- Specified by:
next
in interfaceIterator<BO extends BinaryObject>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-