I have a List of Thing holding two atrributes : status (an Enum) and owner (another object).
I want to obtain a Guava Table<owner, status, Long> by traversing the ArrayList and counting the objects, including a count of 0 if some status isn't in the List, like that:
[owner1, status1, 2], [owner1, status2, 0], [owner2, status1, 3], [owner2, status2, 2]
how to use .collect(Tables.toTable()) in that case?