Searched refs:instances (Results 1 – 5 of 5) sorted by relevance
46 List<IntSummaryStatistics> instances = new ArrayList<>(); in testIntStatistics() local47 instances.add(countTo(1000).stream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics()48 instances.add(countTo(1000).stream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics()49 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics()50 instances.add(countTo(1000).parallelStream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics()52 for (IntSummaryStatistics stats : instances) { in testIntStatistics()61 List<LongSummaryStatistics> instances = new ArrayList<>(); in testLongStatistics() local62 instances.add(countTo(1000).stream().collect(Collectors.summarizingLong(i -> i))); in testLongStatistics()63 instances.add(countTo(1000).stream().mapToLong(i -> i).summaryStatistics()); in testLongStatistics()64 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingLong(i -> i))); in testLongStatistics()[all …]
82 private static ConcurrentMap<String, Currency> instances = new ConcurrentHashMap<>(7); field in Currency284 Currency instance = instances.get(currencyCode); in getInstance()295 instance = instances.putIfAbsent(currencyCode, currencyVal); in getInstance()428 instances.put(currency.currencyCode, currency); in getAvailableCurrencies()
195 static <T> Set<T> set(T... instances) { in set() argument196 return new HashSet<>(Arrays.asList(instances)); in set()
558 Object[] instances = { impl1, impl2, impl3 }; in testDefaultMethod_invoke() local563 for (Object instance : instances) { in testDefaultMethod_invoke()
633 DecimalFormat[] instances = new DecimalFormat[] { in createDecimalFormatInstances() local638 return instances; in createDecimalFormatInstances()