public override int GetHashCode() { unchecked { var hashCode = (OldIndex != null ? OldIndex.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NewIndex != null ? NewIndex.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Alias != null ? Alias.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DeleteOld.GetHashCode(); hashCode = (hashCode * 397) ^ (TimestampField != null ? TimestampField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StartUtc != null ? StartUtc.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hashCode = -1018114159; hashCode = hashCode * -1521134295 + EqualityComparer <OtpErlangPid> .Default.GetHashCode(Pid); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Module); hashCode = hashCode * -1521134295 + Index.GetHashCode(); hashCode = hashCode * -1521134295 + OldIndex.GetHashCode(); hashCode = hashCode * -1521134295 + Uniq.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <IOtpErlangObject[]> .Default.GetHashCode(FreeVars); hashCode = hashCode * -1521134295 + Arity.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <byte[]> .Default.GetHashCode(Md5); return(hashCode); }
public int CompareTo(OtpErlangFun other) { if (other is null) { return(1); } int res = Pid.CompareTo(other.Pid); if (res == 0) { res = Module.CompareTo(other.Module); } if (res == 0) { res = Arity.CompareTo(other.Arity); } if (res == 0) { res = Md5.CompareTo(other.Md5); } if (res == 0) { res = Index.CompareTo(other.Index); } if (res == 0) { res = OldIndex.CompareTo(other.OldIndex); } if (res == 0) { res = Uniq.CompareTo(other.Uniq); } if (res == 0) { res = FreeVars.CompareTo(other.FreeVars); } return(res); }
public override int GetHashCode() { return(OldIndex.GetHashCode() ^ NewIndex.GetHashCode() << 2 ^ EqualityComparer <T> .Default.GetHashCode(Value) >> 2); }
public bool Equals(CollectionMoveEvent <T> other) { return(OldIndex.Equals(other.OldIndex) && NewIndex.Equals(other.NewIndex) && EqualityComparer <T> .Default.Equals(Value, other.Value)); }