Such interfaces have methods to count the number of elements, but to check if the object is empty one has to always use something like rowCount() == 0, colCount() == 0 or count() == 0.
An isEmpty() method will provide a standard, usual and convenient way to check if the object is empty.
Such interfaces have methods to count the number of elements, but to check if the object is empty one has to always use something like
rowCount() == 0
,colCount() == 0
orcount() == 0
.An
isEmpty()
method will provide a standard, usual and convenient way to check if the object is empty.