コード例 #1
0
ファイル: ComboLeg.py プロジェクト: Reddy1992/backend
 def __eq__(self, p_other):
     if self is p_other:
         return True
     else:
         if p_other is None:
             return False
     l_theOther = p_other
     if (self.m_conId != l_theOther.m_conId) or (self.m_ratio != l_theOther.m_ratio) or (self.m_openClose != l_theOther.m_openClose) or (self.m_shortSaleSlot != l_theOther.m_shortSaleSlot):
         return False
     if (Util.StringCompareIgnCase(self.m_action, l_theOther.m_action) != 0) or (Util.StringCompareIgnCase(self.m_exchange, l_theOther.m_exchange) != 0) or (Util.StringCompareIgnCase(self.m_designatedLocation, l_theOther.m_designatedLocation) != 0):
         return False
     return True
コード例 #2
0
 def __eq__(self, p_other):
     """ generated source for method equals """
     if self == p_other:
         return True
     elif p_other == None:
         return False
     l_theOther = p_other
     if self.m_conId != l_theOther.m_conId or self.m_ratio != l_theOther.m_ratio or self.m_openClose != l_theOther.m_openClose or self.m_shortSaleSlot != l_theOther.m_shortSaleSlot or self.m_exemptCode != l_theOther.m_exemptCode:
         return False
     if Util.StringCompareIgnCase(
             self.m_action,
             l_theOther.m_action) != 0 or Util.StringCompareIgnCase(
                 self.m_exchange,
                 l_theOther.m_exchange) != 0 or Util.StringCompareIgnCase(
                     self.m_designatedLocation,
                     l_theOther.m_designatedLocation) != 0:
         return False
     return True
コード例 #3
0
 def __eq__(self, p_other):
     """ generated source for method equals """
     if self is p_other:
         return True
     elif p_other is None:
         return False
     if (self.m_conId !=
             p_other.m_conId) or (self.m_ratio != p_other.m_ratio) or (
                 self.m_openClose != p_other.m_openClose) or (
                     self.m_shortSaleSlot != p_other.m_shortSaleSlot) or (
                         self.m_exemptCode != p_other.m_exemptCode):
         return False
     if (Util.StringCompareIgnCase(self.m_action, p_other.m_action) !=
             0) or (Util.StringCompareIgnCase(self.m_exchange,
                                              p_other.m_exchange) !=
                    0) or (Util.StringCompareIgnCase(
                        self.m_designatedLocation,
                        p_other.m_designatedLocation) != 0):
         return False
     return True