def METHOD_NAME(self, value):
    if self.inc[0]:
        great = self.minsize <= value
    else:
        great = self.minsize < value
    if self.inc[1]:
        less = value <= self.maxsize
    else:
        less = value < self.maxsize
    return great and less