Code example for Deque

Methods: removeFirst

0
        return !objectSummaries.isEmpty(); 
    } 
 
    @Override 
    public S3ObjectSummary next() { 
        return objectSummaries.removeFirst(); 
    } 
 
}