Interface PingBuffer

    • Method Detail

      • getBeginIndex

        int getBeginIndex()
        The first valid index usable by getPing(int).
        Returns:
        the first valid index
      • getEndIndex

        int getEndIndex()
        One past the last valid index usable by getPing(int).
        Returns:
        one past the last valid index
      • getPing

        Ping getPing​(int index)
        Returns a ping indexed relative to the center ping. The center ping can be accessed by getPing(0). The surrounding pings can be access by getPing(index), where
        getBeginIndex() ≤ index < getEndIndex().
        Parameters:
        index - the index relative to the center ping
        Returns:
        a ping