接口 PositionTrackingStream<T>
-
- 所有已知实现类:
CommonTreeNodeStream
public interface PositionTrackingStream<T>- 作者:
- Sam Harwell
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 TgetKnownPositionElement(boolean allowApproximateLocation)Returns an element containing concrete information about the current position in the stream.booleanhasPositionInformation(T element)Determines if the specifiedelementcontains concrete position information.
-
-
-
方法详细资料
-
getKnownPositionElement
T getKnownPositionElement(boolean allowApproximateLocation)
Returns an element containing concrete information about the current position in the stream.- 参数:
allowApproximateLocation- iffalse, this method returnsnullif an element containing exact information about the current position is not available
-
hasPositionInformation
boolean hasPositionInformation(T element)
Determines if the specifiedelementcontains concrete position information.- 参数:
element- the element to check- 返回:
trueifelementcontains concrete position information, otherwisefalse
-
-