Check if Guava HashBasedTable contains any empty cells

541 Views Asked by At

I am sending some data around in my application as a Guava HashBasedTable.

I want to implement some validations on the table to make sure it is not missing data in any of its cells. (If a column exists and a row exists, the value at Cell:column/row should be populated.)

I'm looking for a native method to implement something like this but not having much luck.

Tried something like dataTable.containsValue() to check for nulls or empty string but it doesn't seem it is initialized in this way.

Any pointers?

Resources: https://guava.dev/releases/22.0/api/docs/com/google/common/collect/HashBasedTable.html

0

There are 0 best solutions below