org.openstreetmap.osmosis.core.apidb.common
Class BaseTableReader.ReadResult<T>

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.common.BaseTableReader.ReadResult<T>
Type Parameters:
T - The type of entity to retrieved.
Enclosing class:
BaseTableReader<T>

protected static class BaseTableReader.ReadResult<T>
extends java.lang.Object

Represents the result of an entity read from the result set at the current position.


Constructor Summary
BaseTableReader.ReadResult(boolean usableResult, T entity)
          Creates a new instance.
 
Method Summary
 T getEntity()
          Returns the entity.
 boolean isUsableResult()
          Returns the usable result flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTableReader.ReadResult

public BaseTableReader.ReadResult(boolean usableResult,
                                  T entity)
Creates a new instance.

Parameters:
usableResult - Indicates if this result should be used.
entity - The entity that was read.
Method Detail

isUsableResult

public boolean isUsableResult()
Returns the usable result flag.

Returns:
The usable result flag.

getEntity

public T getEntity()
Returns the entity.

Returns:
The entity.