In the new Vaadin, this can be solved as follows:
Component component = //... for (Component c : tabSheet) { if (c.equals(component)) { // duplicate... } }
But as @CRH mentioned earlier, you have to make sure equal() and hashCode() correct.
source share