@@ -773,52 +773,48 @@ abstract class Expr internal constructor() {
773
773
fun sqrt (numericField : String ): Expr = FunctionExpr (" sqrt" , evaluateSqrt, numericField)
774
774
775
775
/* *
776
- * Creates an expression that adds numeric expressions and constants .
776
+ * Creates an expression that adds numeric expressions.
777
777
*
778
778
* @param first Numeric expression to add.
779
779
* @param second Numeric expression to add.
780
- * @param others Additional numeric expressions or constants to add.
781
780
* @return A new [Expr] representing the addition operation.
782
781
*/
783
782
@JvmStatic
784
- fun add (first : Expr , second : Expr , vararg others : Any ): Expr =
785
- FunctionExpr (" add" , evaluateAdd, first, second, * others )
783
+ fun add (first : Expr , second : Expr ): Expr =
784
+ FunctionExpr (" add" , evaluateAdd, first, second)
786
785
787
786
/* *
788
- * Creates an expression that adds numeric expressions and constants .
787
+ * Creates an expression that adds numeric expressions with a constant .
789
788
*
790
789
* @param first Numeric expression to add.
791
790
* @param second Constant to add.
792
- * @param others Additional numeric expressions or constants to add.
793
791
* @return A new [Expr] representing the addition operation.
794
792
*/
795
793
@JvmStatic
796
- fun add (first : Expr , second : Number , vararg others : Any ): Expr =
797
- FunctionExpr (" add" , evaluateAdd, first, second, * others )
794
+ fun add (first : Expr , second : Number ): Expr =
795
+ FunctionExpr (" add" , evaluateAdd, first, second)
798
796
799
797
/* *
800
- * Creates an expression that adds a numeric field with numeric expressions and constants .
798
+ * Creates an expression that adds a numeric field with a numeric expression .
801
799
*
802
800
* @param numericFieldName Numeric field to add.
803
801
* @param second Numeric expression to add to field value.
804
- * @param others Additional numeric expressions or constants to add.
805
802
* @return A new [Expr] representing the addition operation.
806
803
*/
807
804
@JvmStatic
808
- fun add (numericFieldName : String , second : Expr , vararg others : Any ): Expr =
809
- FunctionExpr (" add" , evaluateAdd, numericFieldName, second, * others )
805
+ fun add (numericFieldName : String , second : Expr ): Expr =
806
+ FunctionExpr (" add" , evaluateAdd, numericFieldName, second)
810
807
811
808
/* *
812
- * Creates an expression that adds a numeric field with numeric expressions and constants .
809
+ * Creates an expression that adds a numeric field with constant .
813
810
*
814
811
* @param numericFieldName Numeric field to add.
815
812
* @param second Constant to add.
816
- * @param others Additional numeric expressions or constants to add.
817
813
* @return A new [Expr] representing the addition operation.
818
814
*/
819
815
@JvmStatic
820
- fun add (numericFieldName : String , second : Number , vararg others : Any ): Expr =
821
- FunctionExpr (" add" , evaluateAdd, numericFieldName, second, * others )
816
+ fun add (numericFieldName : String , second : Number ): Expr =
817
+ FunctionExpr (" add" , evaluateAdd, numericFieldName, second)
822
818
823
819
/* *
824
820
* Creates an expression that subtracts two expressions.
@@ -865,52 +861,48 @@ abstract class Expr internal constructor() {
865
861
FunctionExpr (" subtract" , evaluateSubtract, numericFieldName, subtrahend)
866
862
867
863
/* *
868
- * Creates an expression that multiplies numeric expressions and constants .
864
+ * Creates an expression that multiplies numeric expressions.
869
865
*
870
866
* @param first Numeric expression to multiply.
871
867
* @param second Numeric expression to multiply.
872
- * @param others Additional numeric expressions or constants to multiply.
873
868
* @return A new [Expr] representing the multiplication operation.
874
869
*/
875
870
@JvmStatic
876
- fun multiply (first : Expr , second : Expr , vararg others : Any ): Expr =
877
- FunctionExpr (" multiply" , evaluateMultiply, first, second, * others )
871
+ fun multiply (first : Expr , second : Expr ): Expr =
872
+ FunctionExpr (" multiply" , evaluateMultiply, first, second)
878
873
879
874
/* *
880
- * Creates an expression that multiplies numeric expressions and constants .
875
+ * Creates an expression that multiplies numeric expressions with a constant .
881
876
*
882
877
* @param first Numeric expression to multiply.
883
878
* @param second Constant to multiply.
884
- * @param others Additional numeric expressions or constants to multiply.
885
879
* @return A new [Expr] representing the multiplication operation.
886
880
*/
887
881
@JvmStatic
888
- fun multiply (first : Expr , second : Number , vararg others : Any ): Expr =
889
- FunctionExpr (" multiply" , evaluateMultiply, first, second, * others )
882
+ fun multiply (first : Expr , second : Number ): Expr =
883
+ FunctionExpr (" multiply" , evaluateMultiply, first, second)
890
884
891
885
/* *
892
- * Creates an expression that multiplies a numeric field with numeric expressions and constants .
886
+ * Creates an expression that multiplies a numeric field with a numeric expression .
893
887
*
894
888
* @param numericFieldName Numeric field to multiply.
895
- * @param second Numeric expression to add to field multiply.
896
- * @param others Additional numeric expressions or constants to multiply.
889
+ * @param second Numeric expression to multiply.
897
890
* @return A new [Expr] representing the multiplication operation.
898
891
*/
899
892
@JvmStatic
900
- fun multiply (numericFieldName : String , second : Expr , vararg others : Any ): Expr =
901
- FunctionExpr (" multiply" , evaluateMultiply, numericFieldName, second, * others )
893
+ fun multiply (numericFieldName : String , second : Expr ): Expr =
894
+ FunctionExpr (" multiply" , evaluateMultiply, numericFieldName, second)
902
895
903
896
/* *
904
- * Creates an expression that multiplies a numeric field with numeric expressions and constants .
897
+ * Creates an expression that multiplies a numeric field with a constant .
905
898
*
906
899
* @param numericFieldName Numeric field to multiply.
907
900
* @param second Constant to multiply.
908
- * @param others Additional numeric expressions or constants to multiply.
909
901
* @return A new [Expr] representing the multiplication operation.
910
902
*/
911
903
@JvmStatic
912
- fun multiply (numericFieldName : String , second : Number , vararg others : Any ): Expr =
913
- FunctionExpr (" multiply" , evaluateMultiply, numericFieldName, second, * others )
904
+ fun multiply (numericFieldName : String , second : Number ): Expr =
905
+ FunctionExpr (" multiply" , evaluateMultiply, numericFieldName, second)
914
906
915
907
/* *
916
908
* Creates an expression that divides two numeric expressions.
@@ -3098,24 +3090,20 @@ abstract class Expr internal constructor() {
3098
3090
fun documentId (): Expr = Companion .documentId(this )
3099
3091
3100
3092
/* *
3101
- * Creates an expression that adds this numeric expression to other numeric expressions and
3102
- * constants.
3093
+ * Creates an expression that adds this numeric expression to another numeric expression.
3103
3094
*
3104
3095
* @param second Numeric expression to add.
3105
- * @param others Additional numeric expressions or constants to add.
3106
3096
* @return A new [Expr] representing the addition operation.
3107
3097
*/
3108
- fun add (second : Expr , vararg others : Any ): Expr = Companion .add(this , second, * others )
3098
+ fun add (second : Expr ): Expr = Companion .add(this , second)
3109
3099
3110
3100
/* *
3111
- * Creates an expression that adds this numeric expression to other numeric expressions and
3112
- * constants.
3101
+ * Creates an expression that adds this numeric expression to a constants.
3113
3102
*
3114
3103
* @param second Constant to add.
3115
- * @param others Additional numeric expressions or constants to add.
3116
3104
* @return A new [Expr] representing the addition operation.
3117
3105
*/
3118
- fun add (second : Number , vararg others : Any ): Expr = Companion .add(this , second, * others )
3106
+ fun add (second : Number ): Expr = Companion .add(this , second)
3119
3107
3120
3108
/* *
3121
3109
* Creates an expression that subtracts a constant from this numeric expression.
@@ -3134,24 +3122,20 @@ abstract class Expr internal constructor() {
3134
3122
fun subtract (subtrahend : Number ): Expr = Companion .subtract(this , subtrahend)
3135
3123
3136
3124
/* *
3137
- * Creates an expression that multiplies this numeric expression to other numeric expressions and
3138
- * constants.
3125
+ * Creates an expression that multiplies this numeric expression with another numeric expression.
3139
3126
*
3140
3127
* @param second Numeric expression to multiply.
3141
- * @param others Additional numeric expressions or constants to multiply.
3142
3128
* @return A new [Expr] representing the multiplication operation.
3143
3129
*/
3144
- fun multiply (second : Expr , vararg others : Any ): Expr = Companion .multiply(this , second, * others )
3130
+ fun multiply (second : Expr ): Expr = Companion .multiply(this , second)
3145
3131
3146
3132
/* *
3147
- * Creates an expression that multiplies this numeric expression to other numeric expressions and
3148
- * constants.
3133
+ * Creates an expression that multiplies this numeric expression with a constant.
3149
3134
*
3150
3135
* @param second Constant to multiply.
3151
- * @param others Additional numeric expressions or constants to multiply.
3152
3136
* @return A new [Expr] representing the multiplication operation.
3153
3137
*/
3154
- fun multiply (second : Number , vararg others : Any ): Expr = Companion .multiply(this , second, * others )
3138
+ fun multiply (second : Number ): Expr = Companion .multiply(this , second)
3155
3139
3156
3140
/* *
3157
3141
* Creates an expression that divides this numeric expression by another numeric expression.
0 commit comments