#NEWLINE# def Contains( self , value ) : #NEWLINE# #INDENT# 'Check if the range contains a specific value.\n\n    Args:\n      value: the value to check.\n    Returns:\n      True iff value is contained in this range.\n    ' #NEWLINE# if ( self . __start is not None ) : #NEWLINE# #INDENT# if ( self . __start_inclusive and ( value < self . __start ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( ( not self . __start_inclusive ) and ( value <= self . __start ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# if ( self . __end is not None ) : #NEWLINE# #INDENT# if ( self . __end_inclusive and ( value > self . __end ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( ( not self . __end_inclusive ) and ( value >= self . __end ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True