Class VectorValue (3.30.0)

public final class VectorValue implements Serializable

Represents a vector in Firestore documents. Create an instance with FieldValue#vector.

Inheritance

Object > VectorValue

Implements

Serializable

Methods

equals(Object obj)

public boolean equals(Object obj)

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

Parameter
Name Description
obj Object

The object to compare against.

Returns
Type Description
boolean

Whether this VectorValue is equal to the provided object.

Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toArray()

public double[] toArray()

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

Returns
Type Description
double[]

A representation of the vector as an array of doubles

toString()

public String toString()
Returns
Type Description
String
Overrides