Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ************************************************************************
 #
 #  DivConq
 #
 #  http://divconq.com/
 #
 #  Copyright:
 #    Copyright 2014 eTimeline, LLC. All rights reserved.
 #
#  License:
#    See the license.txt file in the project's top-level directory for details.
#  Authors:
#    * Andy White
************************************************************************ */
package divconq.util;
public class ClassicIteratorAdapter<T> implements IAsyncIterator<T> {
	protected Iterator<T> classic = null;
	public ClassicIteratorAdapter(Iterator<T> iterator) {
		this. = iterator;
	}
	public void hasNext(FuncCallback<Booleancallback) {
		callback.setResult(this..hasNext());
		callback.complete();
	}
	public void next(FuncCallback<T> callback) {
		callback.setResult(this..next());
		callback.complete();
	}
New to GrepCode? Check out our FAQ X