コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (latEndCondition_ != null)
            {
                hash ^= LatEndCondition.GetHashCode();
            }
            if (sStrategy_ != null)
            {
                hash ^= SStrategy.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
 public void MergeFrom(LatSampleConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.latEndCondition_ != null)
     {
         if (latEndCondition_ == null)
         {
             latEndCondition_ = new global::Apollo.Planning.LatCondition();
         }
         LatEndCondition.MergeFrom(other.LatEndCondition);
     }
     if (other.sStrategy_ != null)
     {
         if (sStrategy_ == null)
         {
             sStrategy_ = new global::Apollo.Planning.SStrategy();
         }
         SStrategy.MergeFrom(other.SStrategy);
     }
 }