base/common/src/main/com/thesett/common/util/concurrent/BatchSynchQueueBase.java
public E peek()
    {
        ReentrantLock lock = this.lock;
        lock.lock();

        try
        {
            return peekAtBufferHead();
        }
        finally
        {
            lock.unlock();
        }
    }
public E peek()
    {
        ReentrantLock lock = this.lock;
        lock.lock();

        try
        {
            return peekAtBufferHead();
        }
        finally
        {
            lock.unlock();
        }
    }
public E peek ( ) { ReentrantLock lock = this . lock ; lock . lock ( ) ; try { return peekAtBufferHead ( ) ; } finally { lock . unlock ( ) ; } }
Retrieves, but does not remove, the head of this queue, returning <tt>null</tt> if this queue is empty.

@return The head of this queue, or <tt>null</tt> if this queue is empty.
Retrieves but does not remove the head of this queue returning <tt > null< / tt > if this queue is empty .