public ExplicitBeanArchiveMetadataContainer(Map<ResourceRoot, ExplicitBeanArchiveMetadata> beanArchiveMetadata) { this.beanArchiveMetadata = ImmutableMap.copyOf(beanArchiveMetadata); }
@Override public Map<?, ?> apply(Map<?, ?> from) { return ImmutableMap.copyOf(from); } });
@Override public Map<?, ?> apply(Map<?, ?> from) { return ImmutableMap.copyOf(from); } });
@Override public Map<?, ?> apply(Map<?, ?> from) { return ImmutableMap.copyOf(from); } });
@Override public Map<?, ?> apply(Map<?, ?> from) { return ImmutableMap.copyOf(from); } });
@Override public Map<?, ?> apply(Map<?, ?> from) { return ImmutableMap.copyOf(from); } });
public MockResourceInjectionServices(Map<String, Object> resources) { this.resources = ImmutableMap.copyOf(resources); }
private static Map<Class<?>, Integer> createLookupMap(List<Class<?>> list) { if (list.isEmpty()) { return Collections.emptyMap(); } Map<Class<?>, Integer> result = new HashMap<Class<?>, Integer>(); for (int i = 0; i < list.size(); i++) { result.put(list.get(i), i); } return ImmutableMap.copyOf(result); }
private static Map<Class<?>, Integer> createLookupMap(List<Class<?>> list) { if (list.isEmpty()) { return Collections.emptyMap(); } Map<Class<?>, Integer> result = new HashMap<Class<?>, Integer>(); for (int i = 0; i < list.size(); i++) { result.put(list.get(i), i); } return ImmutableMap.copyOf(result); }
private static Map<Class<?>, Integer> createLookupMap(List<Class<?>> list) { if (list.isEmpty()) { return Collections.emptyMap(); } Map<Class<?>, Integer> result = new HashMap<Class<?>, Integer>(); for (int i = 0; i < list.size(); i++) { result.put(list.get(i), i); } return ImmutableMap.copyOf(result); }
public Map<AbstractBean<?, ?>, Long> getBeansSpecializedInAnyDeploymentAsMap() { Set<Entry<AbstractBean<?, ?>, AtomicLong>> entrySet = specializedBeansMap.entrySet(); Map<AbstractBean<?, ?>, Long> resultingMap = new HashMap<>(); for (Entry<AbstractBean<?, ?>, AtomicLong> entry : entrySet) { resultingMap.put(entry.getKey(), entry.getValue().longValue()); } return ImmutableMap.copyOf(resultingMap); } }
private static Map<Class<?>, Integer> createLookupMap(List<Class<?>> list) { if (list.isEmpty()) { return Collections.emptyMap(); } Map<Class<?>, Integer> result = new HashMap<Class<?>, Integer>(); for (int i = 0; i < list.size(); i++) { result.put(list.get(i), i); } return ImmutableMap.copyOf(result); }
private static Map<Class<?>, Integer> createLookupMap(List<Class<?>> list) { if (list.isEmpty()) { return Collections.emptyMap(); } Map<Class<?>, Integer> result = new HashMap<Class<?>, Integer>(); for (int i = 0; i < list.size(); i++) { result.put(list.get(i), i); } return ImmutableMap.copyOf(result); }
private static Map<Class<?>, Integer> createLookupMap(List<Class<?>> list) { if (list.isEmpty()) { return Collections.emptyMap(); } Map<Class<?>, Integer> result = new HashMap<Class<?>, Integer>(); for (int i = 0; i < list.size(); i++) { result.put(list.get(i), i); } return ImmutableMap.copyOf(result); }
private Map<Class<?>, Integer> getGlobalAlternativeMap() { if (cachedAlternativeMap == null) { Map<Class<?>, Integer> map = new HashMap<Class<?>, Integer>(); for (ListIterator<Item> iterator = alternatives.listIterator(); iterator.hasNext(); ) { Item item = iterator.next(); map.put(item.getJavaClass(), iterator.previousIndex()); } cachedAlternativeMap = ImmutableMap.copyOf(map); } return cachedAlternativeMap; }
private Map<Class<?>, Integer> getGlobalAlternativeMap() { if (cachedAlternativeMap == null || dirty) { Map<Class<?>, Integer> map = new HashMap<Class<?>, Integer>(); for (Item item : alternatives) { map.put(item.getJavaClass(), item.getPriority()); } cachedAlternativeMap = ImmutableMap.copyOf(map); } return cachedAlternativeMap; }
private Map<Class<?>, Integer> getGlobalAlternativeMap() { if (cachedAlternativeMap == null || dirty) { Map<Class<?>, Integer> map = new HashMap<Class<?>, Integer>(); for (Item item : alternatives) { map.put(item.getJavaClass(), item.getPriority()); } cachedAlternativeMap = ImmutableMap.copyOf(map); } return cachedAlternativeMap; }
private Map<Class<?>, Integer> getGlobalAlternativeMap() { if (cachedAlternativeMap == null || dirty) { Map<Class<?>, Integer> map = new HashMap<Class<?>, Integer>(); for (Item item : alternatives) { map.put(item.getJavaClass(), item.getPriority()); } cachedAlternativeMap = ImmutableMap.copyOf(map); } return cachedAlternativeMap; }
private Map<Class<?>, Integer> getGlobalAlternativeMap() { if (cachedAlternativeMap == null || dirty) { Map<Class<?>, Integer> map = new HashMap<Class<?>, Integer>(); for (Item item : alternatives) { map.put(item.getJavaClass(), item.getPriority()); } cachedAlternativeMap = ImmutableMap.copyOf(map); } return cachedAlternativeMap; }
private Map<Class<?>, Integer> getGlobalAlternativeMap() { if (cachedAlternativeMap == null || dirty) { Map<Class<?>, Integer> map = new HashMap<Class<?>, Integer>(); for (Item item : alternatives) { map.put(item.getJavaClass(), item.getPriority()); } cachedAlternativeMap = ImmutableMap.copyOf(map); } return cachedAlternativeMap; }