Code example for LinkedList

Methods: add

0
 
    /** 
     * creates an empty object 
     */ 
    public BasicDBObjectBuilder(){ 
        _stack = new LinkedList<DBObject>();
        _stack.add( new BasicDBObject() );
    } 
 
    /** 
     * Creates an empty object 
     * @return The new empty builder 
     */ 
    public static BasicDBObjectBuilder start(){ 
        return new BasicDBObjectBuilder(); 
    } 
 
    /** 
     * creates an object with the given key/value 
     * @param k The field name 
     * @param val The value