So like I said above. I want to use getNeighbours(1,true,Black.class) to check if any of the neighbours are from White.class. The objects in my Scenario are contained in cells.
boolean hasNeighbours = getNeighbours(1, true, Black.class).size() > 0;
if ( ! getNeighbours(1, true, White.class).isEmpty() )
if ( ! getNeighbours(1, true, White.class).isEmpty() )
boolean hasNeighbours = getNeighbours(1, true, Black.class).size() > 0;
int neighborCount = getNeighbours(1, true, White.class).size();