private static boolean hasChanges(List<Endpoint> oldEndpoints, List<Endpoint> newEndpoints) {
        if (oldEndpoints == UNINITIALIZED_ENDPOINTS) {
            return true;
        }

        if (oldEndpoints.size() != newEndpoints.size()) {
            return true;
        }

        for (int i = 0; i < oldEndpoints.size(); i++) {
            final Endpoint a = oldEndpoints.get(i);
            final Endpoint b = newEndpoints.get(i);
            if (!a.equals(b) || a.weight() != b.weight() || !a.attrs().equals(b.attrs())) {
                return true;
            }
        }

        return false;
    }
Sets the specified {@link Endpoint}s as current {@link Endpoint} list.
core/src/main/java/com/linecorp/armeria/client/endpoint/DynamicEndpointGroup.java