org.eclipse.edje/src/main/java/org/eclipse/edje/util/FixedLengthFIFOQueue.java
public void add(T data) {
		synchronized (buffer) {
			int eventQueueLength = buffer.length;
			// Check if the queue is not full
			int nextEnd = (ptrEnd + 1) % eventQueueLength; // ptrEnd is read
															// without accessing
															// readMonitor
			if (nextEnd == ptrBegin) {
				// fifo is full
				throw new QueueFullException(data);
			}
			// add the new event at the last index : ptrEnd
			buffer[ptrEnd] = data;
			ptrEnd = (ptrEnd + 1) % eventQueueLength;
			// notify eventually the waiting pumpEvent Thread
			buffer.notify();
		}
	}
/**
	 * This method adds the <code>data</code> to the FIFO. When the FIFO is
	 * full, {@link QueueFullException} is thrown.
	 *
	 * @param data
	 *            the new data to be added to the FIFO
	 */
This method adds the data to the FIFO. When the FIFO is
full,  QueueFullException is thrown.

@param data
the new data to be added to the FIFO
This method adds the data to the FIFO . When the FIFO is full QueueFullException is thrown . @param data the new data to be added to the FIFO
public void add(T data) {
		synchronized (buffer) {
			int eventQueueLength = buffer.length;
			int nextEnd = (ptrEnd + 1) % eventQueueLength; 
			if (nextEnd == ptrBegin) {
				throw new QueueFullException(data);
			}
			buffer[ptrEnd] = data;
			ptrEnd = (ptrEnd + 1) % eventQueueLength;
			buffer.notify();
		}
	}
public void add ( T data ) { synchronized ( buffer ) { int eventQueueLength = buffer . length ; int nextEnd = ( ptrEnd + 1 ) % eventQueueLength ; if ( nextEnd == ptrBegin ) { throw new QueueFullException ( data ) ; } buffer [ ptrEnd ] = data ; ptrEnd = ( ptrEnd + 1 ) % eventQueueLength ; buffer . notify ( ) ; } }
This method adds the <code>data</code> to the FIFO.
This method adds the <code > data< / code > to the FIFO .
// Check if the queue is not full // ptrEnd is read // without accessing // readMonitor // fifo is full // add the new event at the last index : ptrEnd // notify eventually the waiting pumpEvent Thread