//----------------------------------------------------------------------- /** * Implement a hash code for this comparator that is consistent with * {@link #equals(Object) equals}. * * @return a suitable hash code * @since Commons Collections 3.0 */ public override int GetHashCode() { int hash = 0; if (null != comparatorChain) { hash ^= comparatorChain.GetHashCode(); } if (null != orderingBits) { hash ^= orderingBits.GetHashCode(); } return(hash); }