title: Having null safe checks using org.apache.commons.ObjectUtil class for custom objects
body: <p>Ive been searching for a robust way to compare my objects, I came across the ObjectUtils , and had the immidiate doubt that would it be able to compare it efficiently or not as I do not know how it works internally and documentation on apache org site about this is scarce.</p>
  
  <p>Can someone please help me with this??</p>
  
  <p>EDIT:</p>
  
  <p>When I say compare , all I really need to to compare for equality of MYOBJ, where MYOBJ is a custom object I have defined , which has various variables in it(all these vars are primitive data types like int,long,float String which can be compares in a straightforward manner if they are not null), but this might change in the future.</p>
  
  <p>I was not sure would BeanUtils.areEqual method be able to handle such a case and what if I include my own datatypes(non -primitives) inside this MYOBJ.</p>
  
  <p>Thanks</p>