Code example for Deque

Methods: peekFirstremoveFirstOccurrence

0
        return maxValue;
    } 
 
    @Override 
    public synchronized Object processRemove(Object obj) {
        maxDeque.removeFirstOccurrence(obj);
        maxValue = maxDeque.peekFirst();
        return maxValue;
    } 
 
    @Override 
    public OutputAttributeAggregator newInstance() { 
        return new MaxOutputAttributeAggregatorFloat(); 
    } 
 
    @Override 
    public void destroy(){ 
 
    } 
}