title: using tryLock to lock object passed into function
body: <p>how i can acquire the lock using <code>tryLock</code> of the <code>integer</code> passed in this way:</p>
  
  <pre><code>lock lock = new ReentrantLock();
  
  
  public void function(Integer i) {
          try{
            if(lock.i.tryLock()){ //-&gt; syntax error
             } 
          }finally{
          }
      }
  </code></pre>