接口 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 specified element contains concrete position information.
    • 方法详细资料

      • getKnownPositionElement

        T getKnownPositionElement​(boolean allowApproximateLocation)
        Returns an element containing concrete information about the current position in the stream.
        参数:
        allowApproximateLocation - if false, this method returns null if an element containing exact information about the current position is not available
      • hasPositionInformation

        boolean hasPositionInformation​(T element)
        Determines if the specified element contains concrete position information.
        参数:
        element - the element to check
        返回:
        true if element contains concrete position information, otherwise false