Closed MarkusLanger closed 4 years ago
public boolean isEmpty() { return this.size() > 0; }
Is checking is this.size() > 0, so actually returning whether it's NOT empty.
I have verified this in my own testing. Created a DocumentCollection with 1 document. collection.getCount() returns 1 collection.isEmpty() returns true collection.getFirstDocument() returns a valid document.
public boolean isEmpty() {
return this.size() > 0; }
Is checking is this.size() > 0, so actually returning whether it's NOT empty.