void add ( T item ) { int i = nextIndex . getAndIncrement ( ) % data . length ( ) ; data . set ( i , item ) ; }
Add a new item to the buffer . If the buffer is full a previous entry will get overwritten .