title: Compiling Java files
body: <p>I am building an API for my application as a middle layer between model and the controller. 
  The model contains all data and low-level function. I have created a new class for API which uses the model but makes things easier for the user and does not let the user to access the data directly.</p>
  
  <p>Now, I would like to prevent the user from accessing the model and let him to use only the functions from API. </p>
  
  <p>How do I do that?</p>
  
  <p>As far as I believe, this can be simply done by specifying whether the method or variable is <code>private</code> or <code>public</code>. The problem is that I have many <code>static</code> fields for global data. Can I restrict access to static fields so that only private functions of API can access them?</p>