Exemple #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;
        }
Exemple #2
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;
        }