public ResourceList w(Resource r) {
        all.add(r);
        write.put(r, unbox(write.get(r))+1);
        return this;
    }
public ResourceList w ( Resource r ) { all . add ( r ) ; write . put ( r , unbox ( write . get ( r ) ) + 1 ) ; return this ; }
Adds a resource for write access.