class ObservableBuffer extends ObservableListBase<E> implements Queue<E> {

    @Override
    public E get(final int index)
    {
        if (index < 0 || index >= myQueue.size())
        {
            throw new IndexOutOfBoundsException(0);
        }
        E item = null;
        synchronized (myQueue)
        {
            final Iterator<E> iterator = myQueue.iterator();
            for (int i = 0; i < index; i++)
            {
                iterator.next();
            }
            item = iterator.next();
        }
        return item;
    }

    public  ObservableBuffer(final int capacity);

}