public static Rule getRule(final String inequalitySymbol, final String field, final String value) {
    if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) {
      // push the value back on the stack and
      // allow the level-specific rule pop values
      return LevelInequalityRule.getRule(inequalitySymbol, value);
    } else if (field.equalsIgnoreCase(TIMESTAMP_FIELD) || field.equalsIgnoreCase(DATE_FIELD)) {
      return TimestampInequalityRule.getRule(inequalitySymbol, value);
    } else {
      return new InequalityRule(inequalitySymbol, field, value);
    }
  }
Create new instance from top two elements on stack.

@param inequalitySymbol inequality symbol.
@param field            field.
@param value            comparison value.
@return rule.
olv-core/src/main/java/pl/otros/logview/accept/query/org/apache/log4j/rule/InequalityRule.java