コード例 #1
0
        public override bool Equals(object o)
        {
            if (this == o) {
                return true;
            }

            if (o == null || GetType() != o.GetType()) {
                return false;
            }

            var that = (ModuleIndexMeta) o;

            if (IsNamedWindow != that.IsNamedWindow) {
                return false;
            }

            if (!InfraName?.Equals(that.InfraName) ?? that.InfraName != null) {
                return false;
            }

            if (!InfraModuleName?.Equals(that.InfraModuleName) ?? that.InfraModuleName != null) {
                return false;
            }

            if (!IndexName?.Equals(that.IndexName) ?? that.IndexName != null) {
                return false;
            }

            return IndexModuleName?.Equals(that.IndexModuleName) ?? that.IndexModuleName == null;
        }
コード例 #2
0
 public override int GetHashCode()
 {
     var result = IsNamedWindow ? 1 : 0;
     result = 31 * result + (InfraName != null ? InfraName.GetHashCode() : 0);
     result = 31 * result + (InfraModuleName != null ? InfraModuleName.GetHashCode() : 0);
     result = 31 * result + (IndexName != null ? IndexName.GetHashCode() : 0);
     result = 31 * result + (IndexModuleName != null ? IndexModuleName.GetHashCode() : 0);
     return result;
 }
コード例 #3
0
        public override bool Equals(object o)
        {
            if (this == o) {
                return true;
            }

            if (o == null || GetType() != o.GetType()) {
                return false;
            }

            var that = (IndexCompileTimeKey) o;

            if (IsNamedWindow != that.IsNamedWindow) {
                return false;
            }

            if (InfraModuleName != null
                ? !InfraModuleName.Equals(that.InfraModuleName)
                : that.InfraModuleName != null) {
                return false;
            }

            if (!InfraName.Equals(that.InfraName)) {
                return false;
            }

            if (Visibility != that.Visibility) {
                return false;
            }

            if (!IndexName.Equals(that.IndexName)) {
                return false;
            }

            return IndexModuleName != null
                ? IndexModuleName.Equals(that.IndexModuleName)
                : that.IndexModuleName == null;
        }