Home
last modified time | relevance | path

Searched refs:instances (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSummaryStatisticsTest.java46 List<IntSummaryStatistics> instances = new ArrayList<>(); in testIntStatistics() local
47 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() local
62 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 …]
/libcore/ojluni/src/main/java/java/util/
DCurrency.java82 private static ConcurrentMap<String, Currency> instances = new ConcurrentHashMap<>(7); field in Currency
284 Currency instance = instances.get(currencyCode); in getInstance()
295 instance = instances.putIfAbsent(currencyCode, currencyVal); in getInstance()
428 instances.put(currency.currencyCode, currency); in getAvailableCurrencies()
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DAnnotatedElementTestSupport.java195 static <T> Set<T> set(T... instances) { in set() argument
196 return new HashSet<>(Arrays.asList(instances)); in set()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMethodTest.java558 Object[] instances = { impl1, impl2, impl3 }; in testDefaultMethod_invoke() local
563 for (Object instance : instances) { in testDefaultMethod_invoke()
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java633 DecimalFormat[] instances = new DecimalFormat[] { in createDecimalFormatInstances() local
638 return instances; in createDecimalFormatInstances()