Class RollingBuffer<T extends RollingBuffer.Resettable>

    • Method Detail

      • reset

        public void reset()
      • get

        public T get(int pos)
        Get T instance for this absolute position; this is allowed to be arbitrarily far "in the future" but cannot be before the last freeBefore.
      • getMaxPos

        public int getMaxPos()
        Returns the maximum position looked up, or -1 if no position has been looked up since reset/init.
      • getBufferSize

        public int getBufferSize()
        Returns how many active positions are in the buffer.