VectorValue

class VectorValue


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

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