Code example for Deque

Methods: peekFirstremoveFirstOccurrence

0
        return minValue;
    } 
 
    @Override 
    public synchronized Object processRemove(Object obj) {
        minDeque.removeFirstOccurrence(obj);
        minValue = minDeque.peekFirst();
        return minValue;
    } 
 
    @Override 
    public OutputAttributeAggregator newInstance() { 
        return new MinOutputAttributeAggregatorLong(); 
    } 
 
    @Override 
    public void destroy(){ 
 
    } 
}