Code example for LinkedList

Methods: getLast

0
    public boolean isEmpty(){ 
        return ((BasicDBObject) _stack.getFirst()).size() == 0;
    } 
 
    private DBObject _cur(){ 
        return _stack.getLast();
    } 
 
    private final LinkedList<DBObject> _stack;
 
}