Class VectorValue

java.lang.Object
com.google.cloud.firestore.VectorValue
All Implemented Interfaces:
Serializable

public final class VectorValue extends Object implements Serializable
Represents a vector in Firestore documents. Create an instance with FieldValue.vector(double[]).
See Also:
  • Method Details

    • toArray

      @Nonnull public double[] toArray()
      Returns a representation of the vector as an array of doubles.
      Returns:
      A representation of the vector as an array of doubles
    • equals

      public boolean equals(Object obj)
      Returns true if this VectorValue is equal to the provided object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare against.
      Returns:
      Whether this VectorValue is equal to the provided object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object