VectorValue

classVectorValue


Represent a vector type in Firestore documents. Create an instance withvector.

Summary

Public functions

Boolean
equals(obj: Any!)

Returns true if this VectorValue is equal to the provided object.

Int
DoubleArray<Double>

Returns a representation of the vector as an array of doubles.

Public functions

equals

fun equals(obj: Any!): Boolean

Returns true if this VectorValue is equal to the provided object.

Parameters
obj: Any!

The object to compare against.

Returns
Boolean

Whether this VectorValue is equal to the provided object.

hashCode

fun hashCode(): Int

toArray

fun toArray(): DoubleArray<Double>

Returns a representation of the vector as an array of doubles.

Returns
DoubleArray<Double>

A representation of the vector as an array of doubles

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.