Code example for LinkedList

Methods: offer

0
    @Override 
    public final synchronized boolean offer(final ContentObject content) {
        if (content == null) {
            throw new RuntimeException("null objects not supported");
        } 
        return list.offer(content);
    } 
 
    /** 
     * @see LinkedList.peek() 
     */ 
    @Override 
    public final synchronized ContentObject peek() { 
        return list.peek();
    } 
 
    /** 
     * @see LinkedList.poll() 
     */ 
    @Override 
    public final synchronized ContentObject poll() {