接口 PositionTrackingStream<T>
-
- 所有已知实现类:
CommonTreeNodeStream
public interface PositionTrackingStream<T>
- 作者:
- Sam Harwell
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 T
getKnownPositionElement(boolean allowApproximateLocation)
Returns an element containing concrete information about the current position in the stream.boolean
hasPositionInformation(T element)
Determines if the specifiedelement
contains 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 returnsnull
if an element containing exact information about the current position is not available
-
hasPositionInformation
boolean hasPositionInformation(T element)
Determines if the specifiedelement
contains concrete position information.- 参数:
element
- the element to check- 返回:
true
ifelement
contains concrete position information, otherwisefalse
-
-