Examples of asBiMap()


Examples of com.addthis.codec.plugins.PluginMap.asBiMap()

        } else if (pluginRegistry.byClass().containsKey(a.getRawType())) {
            pluginMap = pluginRegistry.byClass().get(a.getRawType());
        } else {
            return null;
        }
        List<NamedType> result = new ArrayList<>(pluginMap.asBiMap().size());
        for (Map.Entry<String, Class<?>> type : pluginMap.asBiMap().entrySet()) {
            result.add(new NamedType(type.getValue(), type.getKey()));
        }
        return result;
    }
View Full Code Here

Examples of com.addthis.codec.plugins.PluginMap.asBiMap()

            pluginMap = pluginRegistry.byClass().get(a.getRawType());
        } else {
            return null;
        }
        List<NamedType> result = new ArrayList<>(pluginMap.asBiMap().size());
        for (Map.Entry<String, Class<?>> type : pluginMap.asBiMap().entrySet()) {
            result.add(new NamedType(type.getValue(), type.getKey()));
        }
        return result;
    }
View Full Code Here

Examples of com.addthis.codec.plugins.PluginMap.asBiMap()

    @Override
    public List<NamedType> findSubtypes(Annotated a) {
        Pluggable pluggable = a.getAnnotation(Pluggable.class);
        if (pluggable != null) {
            PluginMap pluginMap = pluginRegistry.byCategory().get(pluggable.value());
            List<NamedType> result = new ArrayList<>(pluginMap.asBiMap().size());
            for (Map.Entry<String, Class<?>> type : pluginMap.asBiMap().entrySet()) {
                result.add(new NamedType(type.getValue(), type.getKey()));
            }
            return result;
        }
View Full Code Here

Examples of com.addthis.codec.plugins.PluginMap.asBiMap()

    public List<NamedType> findSubtypes(Annotated a) {
        Pluggable pluggable = a.getAnnotation(Pluggable.class);
        if (pluggable != null) {
            PluginMap pluginMap = pluginRegistry.byCategory().get(pluggable.value());
            List<NamedType> result = new ArrayList<>(pluginMap.asBiMap().size());
            for (Map.Entry<String, Class<?>> type : pluginMap.asBiMap().entrySet()) {
                result.add(new NamedType(type.getValue(), type.getKey()));
            }
            return result;
        }
        return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.