dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/MetadataInfoV2.java [181:259]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return services_;
    }

    public int getServicesCount() {
        return internalGetServices().getMap().size();
    }

    /**
     * <pre>
     * A map of service information.
     * </pre>
     *
     * <code>map&lt;string, .org.apache.dubbo.metadata.ServiceInfoV2&gt; services = 3;</code>
     */
    @Override
    public boolean containsServices(String key) {
        if (key == null) {
            throw new NullPointerException("map key");
        }
        return internalGetServices().getMap().containsKey(key);
    }

    /**
     * Use {@link #getServicesMap()} instead.
     */
    @Override
    @Deprecated
    public java.util.Map<String, ServiceInfoV2> getServices() {
        return getServicesMap();
    }

    /**
     * <pre>
     * A map of service information.
     * </pre>
     *
     * <code>map&lt;string, .org.apache.dubbo.metadata.ServiceInfoV2&gt; services = 3;</code>
     */
    @Override
    public java.util.Map<String, ServiceInfoV2> getServicesMap() {
        return internalGetServices().getMap();
    }

    /**
     * <pre>
     * A map of service information.
     * </pre>
     *
     * <code>map&lt;string, .org.apache.dubbo.metadata.ServiceInfoV2&gt; services = 3;</code>
     */
    @Override
    public /* nullable */ ServiceInfoV2 getServicesOrDefault(
            String key,
            /* nullable */
            ServiceInfoV2 defaultValue) {
        if (key == null) {
            throw new NullPointerException("map key");
        }
        java.util.Map<String, ServiceInfoV2> map = internalGetServices().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
    }

    /**
     * <pre>
     * A map of service information.
     * </pre>
     *
     * <code>map&lt;string, .org.apache.dubbo.metadata.ServiceInfoV2&gt; services = 3;</code>
     */
    @Override
    public ServiceInfoV2 getServicesOrThrow(String key) {
        if (key == null) {
            throw new NullPointerException("map key");
        }
        java.util.Map<String, ServiceInfoV2> map = internalGetServices().getMap();
        if (!map.containsKey(key)) {
            throw new IllegalArgumentException();
        }
        return map.get(key);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/MetadataInfoV2.java [878:956]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            return services_;
        }

        public int getServicesCount() {
            return internalGetServices().getMap().size();
        }

        /**
         * <pre>
         * A map of service information.
         * </pre>
         *
         * <code>map&lt;string, .org.apache.dubbo.metadata.ServiceInfoV2&gt; services = 3;</code>
         */
        @Override
        public boolean containsServices(String key) {
            if (key == null) {
                throw new NullPointerException("map key");
            }
            return internalGetServices().getMap().containsKey(key);
        }

        /**
         * Use {@link #getServicesMap()} instead.
         */
        @Override
        @Deprecated
        public java.util.Map<String, ServiceInfoV2> getServices() {
            return getServicesMap();
        }

        /**
         * <pre>
         * A map of service information.
         * </pre>
         *
         * <code>map&lt;string, .org.apache.dubbo.metadata.ServiceInfoV2&gt; services = 3;</code>
         */
        @Override
        public java.util.Map<String, ServiceInfoV2> getServicesMap() {
            return internalGetServices().getMap();
        }

        /**
         * <pre>
         * A map of service information.
         * </pre>
         *
         * <code>map&lt;string, .org.apache.dubbo.metadata.ServiceInfoV2&gt; services = 3;</code>
         */
        @Override
        public /* nullable */ ServiceInfoV2 getServicesOrDefault(
                String key,
                /* nullable */
                ServiceInfoV2 defaultValue) {
            if (key == null) {
                throw new NullPointerException("map key");
            }
            java.util.Map<String, ServiceInfoV2> map = internalGetServices().getMap();
            return map.containsKey(key) ? map.get(key) : defaultValue;
        }

        /**
         * <pre>
         * A map of service information.
         * </pre>
         *
         * <code>map&lt;string, .org.apache.dubbo.metadata.ServiceInfoV2&gt; services = 3;</code>
         */
        @Override
        public ServiceInfoV2 getServicesOrThrow(String key) {
            if (key == null) {
                throw new NullPointerException("map key");
            }
            java.util.Map<String, ServiceInfoV2> map = internalGetServices().getMap();
            if (!map.containsKey(key)) {
                throw new IllegalArgumentException();
            }
            return map.get(key);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



