VectorValue

public class VectorValue


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

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