コード例 #1
0
ファイル: JarStep.cs プロジェクト: supperslonic/EmrWorkflow
 public override int GetHashCode()
 {
     return((this.Name ?? String.Empty).GetHashCode()
            ^ (this.ActionOnFailure == null ? 0 : this.ActionOnFailure.GetHashCode())
            ^ (this.JarPath ?? String.Empty).GetHashCode()
            ^ (this.MainClass ?? String.Empty).GetHashCode()
            ^ EmrWorkflowItemBase.GetListHashCode(this.Args));
 }
コード例 #2
0
        public static bool Equals(HBaseDaemonsConfig obj1, HBaseDaemonsConfig obj2)
        {
            if (object.ReferenceEquals(obj1, null) && object.ReferenceEquals(obj2, null))
            {
                return(true);
            }

            if (object.ReferenceEquals(obj1, null) || object.ReferenceEquals(obj2, null))
            {
                return(false);
            }

            return(EmrWorkflowItemBase.ListsAreEqual(obj1.Args, obj2.Args));
        }
コード例 #3
0
        public static bool Equals(BootstrapAction obj1, BootstrapAction obj2)
        {
            if (object.ReferenceEquals(obj1, null) && object.ReferenceEquals(obj2, null))
            {
                return(true);
            }

            if (object.ReferenceEquals(obj1, null) || object.ReferenceEquals(obj2, null))
            {
                return(false);
            }

            return(obj1.Name == obj2.Name &&
                   obj1.Path == obj2.Path &&
                   EmrWorkflowItemBase.ListsAreEqual(obj1.Args, obj2.Args));
        }
コード例 #4
0
        public static bool Equals(HBaseConfig obj1, HBaseConfig obj2)
        {
            if (object.ReferenceEquals(obj1, null) && object.ReferenceEquals(obj2, null))
            {
                return(true);
            }

            if (object.ReferenceEquals(obj1, null) || object.ReferenceEquals(obj2, null))
            {
                return(false);
            }

            return(obj1.IfStart == obj2.IfStart &&
                   obj1.JarPath == obj2.JarPath &&
                   EmrWorkflowItemBase.ListsAreEqual(obj1.Args, obj2.Args) &&
                   obj1.HBaseDaemondsConfigArgs == obj2.HBaseDaemondsConfigArgs);
        }
コード例 #5
0
ファイル: JarStep.cs プロジェクト: supperslonic/EmrWorkflow
        public static bool Equals(JarStep obj1, JarStep obj2)
        {
            if (object.ReferenceEquals(obj1, null) && object.ReferenceEquals(obj2, null))
            {
                return(true);
            }

            if (object.ReferenceEquals(obj1, null) || object.ReferenceEquals(obj2, null))
            {
                return(false);
            }

            return(obj1.Name == obj2.Name &&
                   obj1.ActionOnFailure == obj2.ActionOnFailure &&
                   obj1.JarPath == obj2.JarPath &&
                   obj1.MainClass == obj2.MainClass &&
                   EmrWorkflowItemBase.ListsAreEqual(obj1.Args, obj2.Args));
        }
コード例 #6
0
 public override int GetHashCode()
 {
     return(EmrWorkflowItemBase.GetListHashCode(this.Args));
 }
コード例 #7
0
 public override int GetHashCode()
 {
     return((this.Name ?? String.Empty).GetHashCode()
            ^ (this.Path ?? String.Empty).GetHashCode()
            ^ EmrWorkflowItemBase.GetListHashCode(this.Args));
 }