Interface PositionTrackingStream<T>

All Known Implementing Classes:
CommonTreeNodeStream

public interface PositionTrackingStream<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    getKnownPositionElement(boolean allowApproximateLocation)
    Returns an element containing concrete information about the current position in the stream.
    boolean
    Determines if the specified element contains concrete position information.
  • Method Details

    • 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