public static boolean lessThan(SoyValue left, SoyValue right) {
    if (left instanceof SoyString && right instanceof SoyString) {
      return left.stringValue().compareTo(right.stringValue()) < 0;
    } else if (left instanceof IntegerData && right instanceof IntegerData) {
      return left.longValue() < right.longValue();
    } else {
      return left.numberValue() < right.numberValue();
    }
  }
public static boolean lessThan ( SoyValue left , SoyValue right ) { if ( left instanceof SoyString && right instanceof SoyString ) { return left . stringValue ( ) . compareTo ( right . stringValue ( ) ) < 0 ; } else if ( left instanceof IntegerData && right instanceof IntegerData ) { return left . longValue ( ) < right . longValue ( ) ; } else { return left . numberValue ( ) < right . numberValue ( ) ; } }
Performs the {@code <} operator on the two values.