private boolean equals(Object o,Object p){
  return (o == p || ((o != null) && o.equals(p)));
}

private boolean equals ( Object o , Object p ) { return ( o == p || ( ( o != null ) && o . equals ( p ) ) ) ; }
convenient method to test equality in two objects , taking into account nulls .
