@classmethod
def _GetComparison(cls, operator, use_literals=False):
    """
        Method for getting different representations of comparisons for messages, using operator or
        literals.

        :param str operator:
            The key to the operator.

        :param Boolean use_literals:
            If literals are to be used.

        :returns str:
            A comparison representation, with operator or literal.
        """
    OPERATOR_COMPARISON = {'>': '>', '<': '<', '>=': '>=', '<=': '<='}
    LITERALS_COMPARISON = {'>': 'greater than', '<': 'less than', '>=':
        'greater or equal to', '<=': 'less or equal to'}
    if use_literals:
        return LITERALS_COMPARISON[operator]
    return OPERATOR_COMPARISON[operator]
