VectorValue

public classVectorValue


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

Summary

Public methods

boolean

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

int
@NonNull double[]

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

Public methods

equals

public boolean equals(Object obj)

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

Parameters
Object obj

The object to compare against.

Returns
boolean

Whether this VectorValue is equal to the provided object.

hashCode

public int hashCode()

toArray

public @NonNull double[] toArray()

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

Returns
@NonNull 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.