/** * Compares BeanComparators for equality based on their imposed ordering. * Returns true only if the given object is a BeanComparater and it can be * determined without a doubt that the ordering is identical. Because * equality testing is dependent on the behavior of the equals methods of * any 'using' Comparators and/or collators, false may be returned even * though ordering is in fact identical. */ public boolean equals(Object obj) { if (obj instanceof BeanComparator) { BeanComparator bc = (BeanComparator)obj; return mFlags == bc.mFlags && equalTest(mBeanClass, bc.mBeanClass) && equalTest(mOrderByName, bc.mOrderByName) && equalTest(mUsingComparator, bc.mUsingComparator) && equalTest(mCollator, bc.mCollator) && equalTest(mParent, bc.mParent); } else { return false; } }
/** * Compares BeanComparators for equality based on their imposed ordering. * Returns true only if the given object is a BeanComparater and it can be * determined without a doubt that the ordering is identical. Because * equality testing is dependent on the behavior of the equals methods of * any 'using' Comparators and/or collators, false may be returned even * though ordering is in fact identical. */ public boolean equals(Object obj) { if (obj instanceof BeanComparator) { BeanComparator bc = (BeanComparator)obj; return mFlags == bc.mFlags && equalTest(mBeanClass, bc.mBeanClass) && equalTest(mOrderByName, bc.mOrderByName) && equalTest(mUsingComparator, bc.mUsingComparator) && equalTest(mCollator, bc.mCollator) && equalTest(mParent, bc.mParent); } else { return false; } }