@@ -239,43 +239,38 @@ abstract class Expr internal constructor() {
239
239
* @param value The [VectorValue] value.
240
240
* @return A new [Expr] constant instance.
241
241
*/
242
- @JvmStatic
243
- fun constant (value : VectorValue ): Expr = Constant (encodeValue(value))
242
+ @JvmStatic fun constant (value : VectorValue ): Expr = Constant (encodeValue(value))
244
243
245
244
/* *
246
245
* Create a [Blob] constant from a [ByteArray].
247
246
*
248
247
* @param bytes The [ByteArray] to convert to a Blob.
249
248
* @return A new [Expr] constant instance representing the Blob.
250
249
*/
251
- @JvmStatic
252
- fun blob (bytes : ByteArray ): Expr = constant(Blob .fromBytes(bytes))
250
+ @JvmStatic fun blob (bytes : ByteArray ): Expr = constant(Blob .fromBytes(bytes))
253
251
254
252
/* *
255
253
* Constant for a null value.
256
254
*
257
255
* @return A [Expr] constant instance.
258
256
*/
259
- @JvmStatic
260
- fun nullValue (): Expr = NULL
257
+ @JvmStatic fun nullValue (): Expr = NULL
261
258
262
259
/* *
263
260
* Create a vector constant for a [DoubleArray] value.
264
261
*
265
262
* @param vector The [VectorValue] value.
266
263
* @return A [Expr] constant instance.
267
264
*/
268
- @JvmStatic
269
- fun vector (vector : DoubleArray ): Expr = Constant (Values .encodeVectorValue(vector))
265
+ @JvmStatic fun vector (vector : DoubleArray ): Expr = Constant (Values .encodeVectorValue(vector))
270
266
271
267
/* *
272
268
* Create a vector constant for a [VectorValue] value.
273
269
*
274
270
* @param vector The [VectorValue] value.
275
271
* @return A [Expr] constant instance.
276
272
*/
277
- @JvmStatic
278
- fun vector (vector : VectorValue ): Expr = Constant (encodeValue(vector))
273
+ @JvmStatic fun vector (vector : VectorValue ): Expr = Constant (encodeValue(vector))
279
274
280
275
/* *
281
276
* Creates a [Field] instance representing the field at the given path.
@@ -305,8 +300,7 @@ abstract class Expr internal constructor() {
305
300
* @param fieldPath The [FieldPath] to the field.
306
301
* @return A new [Field] instance representing the specified path.
307
302
*/
308
- @JvmStatic
309
- fun field (fieldPath : FieldPath ): Field = Field (fieldPath.internalPath)
303
+ @JvmStatic fun field (fieldPath : FieldPath ): Field = Field (fieldPath.internalPath)
310
304
311
305
@JvmStatic
312
306
fun generic (name : String , vararg expr : Expr ): Expr = FunctionExpr (name, notImplemented, expr)
0 commit comments