@@ -747,52 +747,48 @@ abstract class Expr internal constructor() {
747
747
@JvmStatic fun sqrt (numericField : String ): Expr = FunctionExpr (" sqrt" , numericField)
748
748
749
749
/* *
750
- * Creates an expression that adds numeric expressions and constants .
750
+ * Creates an expression that adds numeric expressions.
751
751
*
752
752
* @param first Numeric expression to add.
753
753
* @param second Numeric expression to add.
754
- * @param others Additional numeric expressions or constants to add.
755
754
* @return A new [Expr] representing the addition operation.
756
755
*/
757
756
@JvmStatic
758
- fun add (first : Expr , second : Expr , vararg others : Any ): Expr =
759
- FunctionExpr (" add" , first, second, * others )
757
+ fun add (first : Expr , second : Expr ): Expr =
758
+ FunctionExpr (" add" , first, second)
760
759
761
760
/* *
762
- * Creates an expression that adds numeric expressions and constants .
761
+ * Creates an expression that adds numeric expressions with a constant .
763
762
*
764
763
* @param first Numeric expression to add.
765
764
* @param second Constant to add.
766
- * @param others Additional numeric expressions or constants to add.
767
765
* @return A new [Expr] representing the addition operation.
768
766
*/
769
767
@JvmStatic
770
- fun add (first : Expr , second : Number , vararg others : Any ): Expr =
771
- FunctionExpr (" add" , first, second, * others )
768
+ fun add (first : Expr , second : Number ): Expr =
769
+ FunctionExpr (" add" , first, second)
772
770
773
771
/* *
774
- * Creates an expression that adds a numeric field with numeric expressions and constants .
772
+ * Creates an expression that adds a numeric field with a numeric expression .
775
773
*
776
774
* @param numericFieldName Numeric field to add.
777
775
* @param second Numeric expression to add to field value.
778
- * @param others Additional numeric expressions or constants to add.
779
776
* @return A new [Expr] representing the addition operation.
780
777
*/
781
778
@JvmStatic
782
- fun add (numericFieldName : String , second : Expr , vararg others : Any ): Expr =
783
- FunctionExpr (" add" , numericFieldName, second, * others )
779
+ fun add (numericFieldName : String , second : Expr ): Expr =
780
+ FunctionExpr (" add" , numericFieldName, second)
784
781
785
782
/* *
786
- * Creates an expression that adds a numeric field with numeric expressions and constants .
783
+ * Creates an expression that adds a numeric field with constant .
787
784
*
788
785
* @param numericFieldName Numeric field to add.
789
786
* @param second Constant to add.
790
- * @param others Additional numeric expressions or constants to add.
791
787
* @return A new [Expr] representing the addition operation.
792
788
*/
793
789
@JvmStatic
794
- fun add (numericFieldName : String , second : Number , vararg others : Any ): Expr =
795
- FunctionExpr (" add" , numericFieldName, second, * others )
790
+ fun add (numericFieldName : String , second : Number ): Expr =
791
+ FunctionExpr (" add" , numericFieldName, second)
796
792
797
793
/* *
798
794
* Creates an expression that subtracts two expressions.
@@ -839,52 +835,48 @@ abstract class Expr internal constructor() {
839
835
FunctionExpr (" subtract" , numericFieldName, subtrahend)
840
836
841
837
/* *
842
- * Creates an expression that multiplies numeric expressions and constants .
838
+ * Creates an expression that multiplies numeric expressions.
843
839
*
844
840
* @param first Numeric expression to multiply.
845
841
* @param second Numeric expression to multiply.
846
- * @param others Additional numeric expressions or constants to multiply.
847
842
* @return A new [Expr] representing the multiplication operation.
848
843
*/
849
844
@JvmStatic
850
- fun multiply (first : Expr , second : Expr , vararg others : Any ): Expr =
851
- FunctionExpr (" multiply" , first, second, * others )
845
+ fun multiply (first : Expr , second : Expr ): Expr =
846
+ FunctionExpr (" multiply" , first, second)
852
847
853
848
/* *
854
- * Creates an expression that multiplies numeric expressions and constants .
849
+ * Creates an expression that multiplies numeric expressions with a constant .
855
850
*
856
851
* @param first Numeric expression to multiply.
857
852
* @param second Constant to multiply.
858
- * @param others Additional numeric expressions or constants to multiply.
859
853
* @return A new [Expr] representing the multiplication operation.
860
854
*/
861
855
@JvmStatic
862
- fun multiply (first : Expr , second : Number , vararg others : Any ): Expr =
863
- FunctionExpr (" multiply" , first, second, * others )
856
+ fun multiply (first : Expr , second : Number ): Expr =
857
+ FunctionExpr (" multiply" , first, second)
864
858
865
859
/* *
866
- * Creates an expression that multiplies a numeric field with numeric expressions and constants .
860
+ * Creates an expression that multiplies a numeric field with a numeric expression .
867
861
*
868
862
* @param numericFieldName Numeric field to multiply.
869
- * @param second Numeric expression to add to field multiply.
870
- * @param others Additional numeric expressions or constants to multiply.
863
+ * @param second Numeric expression to multiply.
871
864
* @return A new [Expr] representing the multiplication operation.
872
865
*/
873
866
@JvmStatic
874
- fun multiply (numericFieldName : String , second : Expr , vararg others : Any ): Expr =
875
- FunctionExpr (" multiply" , numericFieldName, second, * others )
867
+ fun multiply (numericFieldName : String , second : Expr ): Expr =
868
+ FunctionExpr (" multiply" , numericFieldName, second)
876
869
877
870
/* *
878
- * Creates an expression that multiplies a numeric field with numeric expressions and constants .
871
+ * Creates an expression that multiplies a numeric field with a constant .
879
872
*
880
873
* @param numericFieldName Numeric field to multiply.
881
874
* @param second Constant to multiply.
882
- * @param others Additional numeric expressions or constants to multiply.
883
875
* @return A new [Expr] representing the multiplication operation.
884
876
*/
885
877
@JvmStatic
886
- fun multiply (numericFieldName : String , second : Number , vararg others : Any ): Expr =
887
- FunctionExpr (" multiply" , numericFieldName, second, * others )
878
+ fun multiply (numericFieldName : String , second : Number ): Expr =
879
+ FunctionExpr (" multiply" , numericFieldName, second)
888
880
889
881
/* *
890
882
* Creates an expression that divides two numeric expressions.
@@ -2990,24 +2982,20 @@ abstract class Expr internal constructor() {
2990
2982
fun documentId (): Expr = Companion .documentId(this )
2991
2983
2992
2984
/* *
2993
- * Creates an expression that adds this numeric expression to other numeric expressions and
2994
- * constants.
2985
+ * Creates an expression that adds this numeric expression to another numeric expression.
2995
2986
*
2996
2987
* @param second Numeric expression to add.
2997
- * @param others Additional numeric expressions or constants to add.
2998
2988
* @return A new [Expr] representing the addition operation.
2999
2989
*/
3000
- fun add (second : Expr , vararg others : Any ): Expr = Companion .add(this , second, * others )
2990
+ fun add (second : Expr ): Expr = Companion .add(this , second)
3001
2991
3002
2992
/* *
3003
- * Creates an expression that adds this numeric expression to other numeric expressions and
3004
- * constants.
2993
+ * Creates an expression that adds this numeric expression to a constants.
3005
2994
*
3006
2995
* @param second Constant to add.
3007
- * @param others Additional numeric expressions or constants to add.
3008
2996
* @return A new [Expr] representing the addition operation.
3009
2997
*/
3010
- fun add (second : Number , vararg others : Any ): Expr = Companion .add(this , second, * others )
2998
+ fun add (second : Number ): Expr = Companion .add(this , second)
3011
2999
3012
3000
/* *
3013
3001
* Creates an expression that subtracts a constant from this numeric expression.
@@ -3026,24 +3014,20 @@ abstract class Expr internal constructor() {
3026
3014
fun subtract (subtrahend : Number ): Expr = Companion .subtract(this , subtrahend)
3027
3015
3028
3016
/* *
3029
- * Creates an expression that multiplies this numeric expression to other numeric expressions and
3030
- * constants.
3017
+ * Creates an expression that multiplies this numeric expression with another numeric expression.
3031
3018
*
3032
3019
* @param second Numeric expression to multiply.
3033
- * @param others Additional numeric expressions or constants to multiply.
3034
3020
* @return A new [Expr] representing the multiplication operation.
3035
3021
*/
3036
- fun multiply (second : Expr , vararg others : Any ): Expr = Companion .multiply(this , second, * others )
3022
+ fun multiply (second : Expr ): Expr = Companion .multiply(this , second)
3037
3023
3038
3024
/* *
3039
- * Creates an expression that multiplies this numeric expression to other numeric expressions and
3040
- * constants.
3025
+ * Creates an expression that multiplies this numeric expression with a constant.
3041
3026
*
3042
3027
* @param second Constant to multiply.
3043
- * @param others Additional numeric expressions or constants to multiply.
3044
3028
* @return A new [Expr] representing the multiplication operation.
3045
3029
*/
3046
- fun multiply (second : Number , vararg others : Any ): Expr = Companion .multiply(this , second, * others )
3030
+ fun multiply (second : Number ): Expr = Companion .multiply(this , second)
3047
3031
3048
3032
/* *
3049
3033
* Creates an expression that divides this numeric expression by another numeric expression.
0 commit comments