OsmAnd/OsmAnd-java/src/net/osmand/ResultMatcher.java

21 lines
315 B
Java
Raw Normal View History

package net.osmand;
/**
* Easy matcher to be able to publish results immediately
*
*/
public interface ResultMatcher<T> {
/**
* @param name
* @return true if result should be added to final list
*/
boolean publish(T object);
/**
* @returns true to stop processing
*/
boolean isCancelled();
}