Field[] fields = SectionProperties.class.getSuperclass().getDeclaredFields();
AccessibleObject.setAccessible(fields, true);
try
{
for (int x = 0; x < fields.length; x++)
{
Object obj1 = fields[x].get(this);
Object obj2 = fields[x].get(obj);
if (obj1 == null && obj2 == null)
{
continue;
}
if (!obj1.equals(obj2))
{
return false;
}
}
return true;
}
catch (Exception e)
{
return false;
}