title: isEmpty issue while comparing java object
body: <p>Currenty I have this NULL object for Employee Details to pass if employee details object created is empty</p>
  
  <pre><code>public static final EmployeeDetails NULL = new EmployeeDetails();
  </code></pre>
  
  <p>But I want to remove this now and use my regular EmployeeDetails object.</p>
  
  <p>I was checking EmployeeDetails obj is empty or not by doing this <code>if(!EmployeeDetails.NULL.equals(empDetails))</code></p>
  
  <p>but now I dont have that object so I won't be able to do that way. I tried this way but got error saying isEmpty is not defined.</p>
  
  <pre><code>if(!empDetails.isEmpty())
  </code></pre>
  
  <p>Can someone tell me what I am suppose to do with this.</p>
  
  <p>Thanks</p>