Interface PositionTrackingStream<T>

  • All Known Implementing Classes:
    CommonTreeNodeStream

    public interface PositionTrackingStream<T>
    Author:
    Sam Harwell
    • Method Detail

      • getKnownPositionElement

        T getKnownPositionElement​(boolean allowApproximateLocation)
        Returns an element containing concrete information about the current position in the stream.
        Parameters:
        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.
        Parameters:
        element - the element to check
        Returns:
        true if element contains concrete position information, otherwise false