question: public ResourceQueue ( R resource , TxDag waitsFor ) { if ( resource == null ) throw new NullPointerException ( ) ; this . resource = resource ; this . waitsFor = waitsFor ; }
target:  Create a queue of lock requests for a resource.