@@ -1512,23 +1512,43 @@ abstract class Expr internal constructor() {
1512
1512
/* *
1513
1513
* Creates an expression that checks if a string expression contains a specified substring.
1514
1514
*
1515
+ * @param stringExpression The expression representing the string to perform the comparison on.
1516
+ * @param substring The expression representing the substring to search for.
1515
1517
* @return A new [BooleanExpr] representing the contains comparison.
1516
1518
*/
1517
1519
@JvmStatic
1518
- fun strContains (expr : Expr , substring : Expr ): BooleanExpr =
1519
- BooleanExpr (" str_contains" , expr , substring)
1520
+ fun strContains (stringExpression : Expr , substring : Expr ): BooleanExpr =
1521
+ BooleanExpr (" str_contains" , stringExpression , substring)
1520
1522
1521
- /* * @return A new [Expr] representing the strContains operation. */
1523
+ /* *
1524
+ * Creates an expression that checks if a string expression contains a specified substring.
1525
+ *
1526
+ * @param stringExpression The expression representing the string to perform the comparison on.
1527
+ * @param substring The substring to search for.
1528
+ * @return A new [BooleanExpr] representing the contains comparison.
1529
+ */
1522
1530
@JvmStatic
1523
- fun strContains (expr : Expr , substring : String ): BooleanExpr =
1524
- BooleanExpr (" str_contains" , expr , substring)
1531
+ fun strContains (stringExpression : Expr , substring : String ): BooleanExpr =
1532
+ BooleanExpr (" str_contains" , stringExpression , substring)
1525
1533
1526
- /* * @return A new [BooleanExpr] representing the strContains operation. */
1534
+ /* *
1535
+ * Creates an expression that checks if a string field contains a specified substring.
1536
+ *
1537
+ * @param fieldName The name of the field to perform the comparison on.
1538
+ * @param substring The expression representing the substring to search for.
1539
+ * @return A new [BooleanExpr] representing the contains comparison.
1540
+ */
1527
1541
@JvmStatic
1528
1542
fun strContains (fieldName : String , substring : Expr ): BooleanExpr =
1529
1543
BooleanExpr (" str_contains" , fieldName, substring)
1530
1544
1531
- /* * @return A new [BooleanExpr] representing the strContains operation. */
1545
+ /* *
1546
+ * Creates an expression that checks if a string field contains a specified substring.
1547
+ *
1548
+ * @param fieldName The name of the field to perform the comparison on.
1549
+ * @param substring The substring to search for.
1550
+ * @return A new [BooleanExpr] representing the contains comparison.
1551
+ */
1532
1552
@JvmStatic
1533
1553
fun strContains (fieldName : String , substring : String ): BooleanExpr =
1534
1554
BooleanExpr (" str_contains" , fieldName, substring)
@@ -1645,23 +1665,51 @@ abstract class Expr internal constructor() {
1645
1665
/* * @return A new [Expr] representing the trim operation. */
1646
1666
@JvmStatic fun trim (fieldName : String ): Expr = FunctionExpr (" trim" , fieldName)
1647
1667
1648
- /* * @return A new [Expr] representing the strConcat operation. */
1668
+ /* *
1669
+ * Creates an expression that concatenates string expressions together.
1670
+ *
1671
+ * @param firstString The expression representing the initial string value.
1672
+ * @param otherStrings Optional additional string expressions to concatenate.
1673
+ * @return A new [Expr] representing the concatenated string.
1674
+ */
1649
1675
@JvmStatic
1650
- fun strConcat (first : Expr , vararg rest : Expr ): Expr = FunctionExpr (" str_concat" , first, * rest)
1676
+ fun strConcat (firstString : Expr , vararg otherStrings : Expr ): Expr =
1677
+ FunctionExpr (" str_concat" , firstString, * otherStrings)
1651
1678
1652
- /* * @return A new [Expr] representing the strConcat operation. */
1679
+ /* *
1680
+ * Creates an expression that concatenates string expressions together.
1681
+ *
1682
+ * @param firstString The expression representing the initial string value.
1683
+ * @param otherStrings Optional additional string expressions or string constants to
1684
+ * concatenate.
1685
+ * @return A new [Expr] representing the concatenated string.
1686
+ */
1653
1687
@JvmStatic
1654
- fun strConcat (first : Expr , vararg rest : Any ): Expr = FunctionExpr (" str_concat" , first, * rest)
1688
+ fun strConcat (firstString : Expr , vararg otherStrings : Any ): Expr =
1689
+ FunctionExpr (" str_concat" , firstString, * otherStrings)
1655
1690
1656
- /* * @return A new [Expr] representing the strConcat operation. */
1691
+ /* *
1692
+ * Creates an expression that concatenates string expressions together.
1693
+ *
1694
+ * @param fieldName The field name containing the initial string value.
1695
+ * @param otherStrings Optional additional string expressions to concatenate.
1696
+ * @return A new [Expr] representing the concatenated string.
1697
+ */
1657
1698
@JvmStatic
1658
- fun strConcat (fieldName : String , vararg rest : Expr ): Expr =
1659
- FunctionExpr (" str_concat" , fieldName, * rest )
1699
+ fun strConcat (fieldName : String , vararg otherStrings : Expr ): Expr =
1700
+ FunctionExpr (" str_concat" , fieldName, * otherStrings )
1660
1701
1661
- /* * @return A new [Expr] representing the strConcat operation. */
1702
+ /* *
1703
+ * Creates an expression that concatenates string expressions together.
1704
+ *
1705
+ * @param fieldName The field name containing the initial string value.
1706
+ * @param otherStrings Optional additional string expressions or string constants to
1707
+ * concatenate.
1708
+ * @return A new [Expr] representing the concatenated string.
1709
+ */
1662
1710
@JvmStatic
1663
- fun strConcat (fieldName : String , vararg rest : Any ): Expr =
1664
- FunctionExpr (" str_concat" , fieldName, * rest )
1711
+ fun strConcat (fieldName : String , vararg otherStrings : Any ): Expr =
1712
+ FunctionExpr (" str_concat" , fieldName, * otherStrings )
1665
1713
1666
1714
internal fun map (elements : Array <out Expr >): Expr = FunctionExpr (" map" , elements)
1667
1715
@@ -2776,7 +2824,7 @@ abstract class Expr internal constructor() {
2776
2824
* @param others Additional numeric expressions or constants to add.
2777
2825
* @return A new [Expr] representing the addition operation.
2778
2826
*/
2779
- fun add (second : Expr , vararg others : Any ) = Companion .add(this , second, * others)
2827
+ fun add (second : Expr , vararg others : Any ): Expr = Companion .add(this , second, * others)
2780
2828
2781
2829
/* *
2782
2830
* Creates an expression that adds this numeric expression to other numeric expressions and
@@ -2786,23 +2834,23 @@ abstract class Expr internal constructor() {
2786
2834
* @param others Additional numeric expressions or constants to add.
2787
2835
* @return A new [Expr] representing the addition operation.
2788
2836
*/
2789
- fun add (second : Number , vararg others : Any ) = Companion .add(this , second, * others)
2837
+ fun add (second : Number , vararg others : Any ): Expr = Companion .add(this , second, * others)
2790
2838
2791
2839
/* *
2792
2840
* Creates an expression that subtracts a constant from this numeric expression.
2793
2841
*
2794
2842
* @param subtrahend Numeric expression to subtract.
2795
2843
* @return A new [Expr] representing the subtract operation.
2796
2844
*/
2797
- fun subtract (subtrahend : Expr ) = Companion .subtract(this , subtrahend)
2845
+ fun subtract (subtrahend : Expr ): Expr = Companion .subtract(this , subtrahend)
2798
2846
2799
2847
/* *
2800
2848
* Creates an expression that subtracts a numeric expressions from this numeric expression.
2801
2849
*
2802
2850
* @param subtrahend Constant to subtract.
2803
2851
* @return A new [Expr] representing the subtract operation.
2804
2852
*/
2805
- fun subtract (subtrahend : Number ) = Companion .subtract(this , subtrahend)
2853
+ fun subtract (subtrahend : Number ): Expr = Companion .subtract(this , subtrahend)
2806
2854
2807
2855
/* *
2808
2856
* Creates an expression that multiplies this numeric expression to other numeric expressions and
@@ -2812,7 +2860,7 @@ abstract class Expr internal constructor() {
2812
2860
* @param others Additional numeric expressions or constants to multiply.
2813
2861
* @return A new [Expr] representing the multiplication operation.
2814
2862
*/
2815
- fun multiply (second : Expr , vararg others : Any ) = Companion .multiply(this , second, * others)
2863
+ fun multiply (second : Expr , vararg others : Any ): Expr = Companion .multiply(this , second, * others)
2816
2864
2817
2865
/* *
2818
2866
* Creates an expression that multiplies this numeric expression to other numeric expressions and
@@ -2822,23 +2870,23 @@ abstract class Expr internal constructor() {
2822
2870
* @param others Additional numeric expressions or constants to multiply.
2823
2871
* @return A new [Expr] representing the multiplication operation.
2824
2872
*/
2825
- fun multiply (second : Number , vararg others : Any ) = Companion .multiply(this , second, * others)
2873
+ fun multiply (second : Number , vararg others : Any ): Expr = Companion .multiply(this , second, * others)
2826
2874
2827
2875
/* *
2828
2876
* Creates an expression that divides this numeric expression by another numeric expression.
2829
2877
*
2830
2878
* @param divisor Numeric expression to divide this numeric expression by.
2831
2879
* @return A new [Expr] representing the division operation.
2832
2880
*/
2833
- fun divide (divisor : Expr ) = Companion .divide(this , divisor)
2881
+ fun divide (divisor : Expr ): Expr = Companion .divide(this , divisor)
2834
2882
2835
2883
/* *
2836
2884
* Creates an expression that divides this numeric expression by a constant.
2837
2885
*
2838
2886
* @param divisor Constant to divide this expression by.
2839
2887
* @return A new [Expr] representing the division operation.
2840
2888
*/
2841
- fun divide (divisor : Number ) = Companion .divide(this , divisor)
2889
+ fun divide (divisor : Number ): Expr = Companion .divide(this , divisor)
2842
2890
2843
2891
/* *
2844
2892
* Creates an expression that calculates the modulo (remainder) of dividing this numeric
@@ -2847,7 +2895,7 @@ abstract class Expr internal constructor() {
2847
2895
* @param divisor The numeric expression to divide this expression by.
2848
2896
* @return A new [Expr] representing the modulo operation.
2849
2897
*/
2850
- fun mod (divisor : Expr ) = Companion .mod(this , divisor)
2898
+ fun mod (divisor : Expr ): Expr = Companion .mod(this , divisor)
2851
2899
2852
2900
/* *
2853
2901
* Creates an expression that calculates the modulo (remainder) of dividing this numeric
@@ -2856,7 +2904,7 @@ abstract class Expr internal constructor() {
2856
2904
* @param divisor The constant to divide this expression by.
2857
2905
* @return A new [Expr] representing the modulo operation.
2858
2906
*/
2859
- fun mod (divisor : Number ) = Companion .mod(this , divisor)
2907
+ fun mod (divisor : Number ): Expr = Companion .mod(this , divisor)
2860
2908
2861
2909
/* *
2862
2910
* Creates an expression that rounds this numeric expression to nearest integer.
@@ -3156,10 +3204,18 @@ abstract class Expr internal constructor() {
3156
3204
fun reverse (): Expr = Companion .reverse(this )
3157
3205
3158
3206
/* *
3207
+ * Creates an expression that checks if this string expression contains a specified substring.
3208
+ *
3209
+ * @param substring The expression representing the substring to search for.
3210
+ * @return A new [BooleanExpr] representing the contains comparison.
3159
3211
*/
3160
3212
fun strContains (substring : Expr ): BooleanExpr = Companion .strContains(this , substring)
3161
3213
3162
3214
/* *
3215
+ * Creates an expression that checks if this string expression contains a specified substring.
3216
+ *
3217
+ * @param substring The substring to search for.
3218
+ * @return A new [BooleanExpr] representing the contains comparison.
3163
3219
*/
3164
3220
fun strContains (substring : String ): BooleanExpr = Companion .strContains(this , substring)
3165
3221
@@ -3208,16 +3264,29 @@ abstract class Expr internal constructor() {
3208
3264
fun trim () = Companion .trim(this )
3209
3265
3210
3266
/* *
3267
+ * Creates an expression that concatenates string expressions together.
3268
+ *
3269
+ * @param stringExpressions The string expressions to concatenate.
3270
+ * @return A new [Expr] representing the concatenated string.
3211
3271
*/
3212
- fun strConcat (vararg expr : Expr ) = Companion .strConcat(this , * expr)
3272
+ fun strConcat (vararg stringExpressions : Expr ): Expr =
3273
+ Companion .strConcat(this , * stringExpressions)
3213
3274
3214
3275
/* *
3276
+ * Creates an expression that concatenates this string expression with string constants.
3277
+ *
3278
+ * @param strings The string constants to concatenate.
3279
+ * @return A new [Expr] representing the concatenated string.
3215
3280
*/
3216
- fun strConcat (vararg string : String ) = Companion .strConcat(this , * string )
3281
+ fun strConcat (vararg strings : String ): Expr = Companion .strConcat(this , * strings )
3217
3282
3218
3283
/* *
3284
+ * Creates an expression that concatenates string expressions and string constants together.
3285
+ *
3286
+ * @param strings The string expressions or string constants to concatenate.
3287
+ * @return A new [Expr] representing the concatenated string.
3219
3288
*/
3220
- fun strConcat (vararg string : Any ) = Companion .strConcat(this , * string )
3289
+ fun strConcat (vararg strings : Any ): Expr = Companion .strConcat(this , * strings )
3221
3290
3222
3291
/* *
3223
3292
* Accesses a map (object) value using the provided [key].
0 commit comments