Blob

public class Blob extends Object
implements Comparable<Blob>

Immutable class representing an array of bytes in Firestore.

Public Method Summary

int
boolean
equals(Object other)
static Blob
fromBytes(byte[] bytes)
Creates a new Blob instance from the provided bytes.
int
byte[]
String

Inherited Method Summary

Public Methods

public int compareTo (Blob other)

public boolean equals (Object other)

public static Blob fromBytes (byte[] bytes)

Creates a new Blob instance from the provided bytes. Will make a copy of the bytes passed in.

Parameters
bytes The bytes to use for this Blob instance.
Returns
  • The new Blob instance

public int hashCode ()

public byte[] toBytes ()

Returns
  • The bytes of this blob as a new byte[] array.

public String toString ()