@Override
    public int hashCode() {
        return Objects.hash(id,
            incarnationId,
            zkMigrationReady,
            listeners,
            supportedFeatures);
    }
An immutable class which represents controller registrations.
metadata/src/main/java/org/apache/kafka/metadata/ControllerRegistration.java