Blob | Doclava
public class

Blob

extends Object
implements Comparable<Blob>
java.lang.Object
   ↳ com.google.firebase.firestore.Blob

Class Overview

Immutable class representing an array of bytes in Firestore.

Summary

Public Methods
int compareTo(Blob other)
boolean equals(Object other)
static Blob fromBytes(byte[] bytes)
Creates a new Blob instance from the provided bytes.
int hashCode()
ByteString toByteString()
byte[] toBytes()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Public Methods

public int compareTo (Blob other)

Parameters
other Blob
Returns
int

public boolean equals (Object other)

Parameters
other Object
Returns
boolean

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 byte: The bytes to use for this Blob instance.
Returns
Blob The new Blob instance

public int hashCode ()

Returns
int

public ByteString toByteString ()

Returns
ByteString

public byte[] toBytes ()

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

public String toString ()

Returns
String