Check for non-null components added, hashCode() and equals() adapted
accordingly.