Compatibility report
Generated by
npm run test:diff:proof(tools/differential/proof.ts). Do not edit by hand.
This library and the reference runtime were run on the same randomly generated operation scripts, and every result was compared step by step. That covers each return value, each exception class, and the full state of the collection after every op. Results go through the normalisations listed below. How the harness works: tools/differential/README.md.
Summary
Section titled “Summary”| Reference runtime | openjdk version “23.0.2” 2025-01-21 |
| Seeds | 1..40 (40 batches of 5000) |
| Scripts | 200,000 |
| Operations compared | 1,692,438 |
| Comparable API covered | 1602 / 1602 (100.0%) |
| Excluded API rows (justified below) | 141 |
| Divergent scripts | 57 in 21 signature(s) |
| Divergence assessment | intentional: 8, reference-quirk: 13 |
| Run time | 61s on 8 worker process(es) |
Scripts per target
Section titled “Scripts per target”Targets are base types. Many scripts operate on a view or wrapper of the base (subList, reversed, keySet, headMap, unmodifiable*, synchronized*, checked*, …).
| Target | Scripts |
|---|---|
| AbsColl | 2,412 |
| AbsList | 2,328 |
| AbsMap | 2,428 |
| AbsQueue | 2,334 |
| AbsSeqList | 2,332 |
| AbsSet | 2,395 |
| ArrayDeque | 2,310 |
| ArrayList | 2,407 |
| EmptyList | 2,375 |
| EmptyListConst | 2,395 |
| EmptyMap | 2,325 |
| EmptyMapConst | 2,322 |
| EmptyNavigableMap | 2,336 |
| EmptyNavigableSet | 2,365 |
| EmptySet | 2,303 |
| EmptySetConst | 2,332 |
| EmptySortedMap | 2,354 |
| EmptySortedSet | 2,344 |
| HashMap | 2,359 |
| HashSet | 2,326 |
| IdentityHashMap | 2,365 |
| LinkedHashMap | 2,348 |
| LinkedHashMapAccess | 2,394 |
| LinkedHashMapLru | 2,381 |
| LinkedHashSet | 2,325 |
| LinkedList | 2,361 |
| ListCopyOf | 2,343 |
| ListOf | 2,369 |
| MapCopyOf | 2,333 |
| MapOf | 2,309 |
| MapOfPairs | 2,354 |
| Misc | 28,309 |
| NCopies | 2,400 |
| PriorityQueue | 2,338 |
| PriorityQueueRev | 2,411 |
| SetCopyOf | 2,277 |
| SetOf | 2,392 |
| Singleton | 2,374 |
| SingletonList | 2,376 |
| SingletonMap | 2,300 |
| Stack | 2,341 |
| Stream | 58,559 |
| TreeMap | 2,421 |
| TreeMapRev | 2,385 |
| TreeSet | 2,360 |
| TreeSetMod3 | 2,373 |
| TreeSetRev | 2,386 |
| UnmodList | 2,392 |
| Vector | 2,352 |
| VectorCap | 2,290 |
Normalisations (intentional deviations)
Section titled “Normalisations (intentional deviations)”| Normalisation | Reason |
|---|---|
remove(int) is removeAt(index) |
TypeScript cannot tell remove(index) from remove(element) on a List<number>; the op removeAt i maps to the reference’s remove(int). |
-0 and 0 print as 0; int catalogue functions add + 0 |
int arithmetic has no -0 in the reference; JS numbers do. The double catalogue avoids producing -0, so DoubleStream.distinct (which keeps -0.0 and 0.0 apart) is not affected. |
Numbers print as integers or shortest round-trip digits (25e-1) |
one JS number type versus the reference’s int/long/double: values are compared, not their static type. |
| Magnitudes >= 2^53-1 print as BIG | JS numbers are exact only up to 2^53; the empty LongSummaryStatistics min/max (64-bit limits) normalise to BIG. |
| Hash-ordered containers print in sorted canonical form | iteration order of HashSet/HashMap/IdentityHashMap/PriorityQueue/Set.of/Map.of/Collectors.toSet/groupingBy is unspecified; their contents are compared as sorted multisets, and iterator/spliterator programs on them print * for single elements and #n for drained remainders. |
| Unordered targets use only total-order comparators for min/max/sort | with ties, which element wins depends on iteration order. |
values().remove(v) is not generated on hashed maps |
which of several equal values is removed depends on iteration order. |
| State after a bulk op that throws midway is not compared | partial results of addAll/removeIf/sort/replaceAll/… are unspecified (and iteration-order dependent on hashed targets); the script stops there. UnsupportedOperationException is exempt (thrown before any change). |
| Catalogue lambdas throw NullPointerException on null input | the reference unboxes (mapToInt, summingInt, comparingInt, primitive Optional.of, …); a JS function cannot know it should, so the harness lambdas do it. |
| Comparator results and Objects.compare are compared by sign | only the sign of a comparison is specified. |
| Spliterator estimateSize/getExactSizeIfKnown only before traversal | after tryAdvance/forEachRemaining/trySplit the estimate is unspecified (printed ~). |
| trySplit prints prefix ++ rest | where (and whether) a spliterator splits is unspecified; for ORDERED spliterators prefix followed by the rest is the encounter order, which is compared. |
| Parallel streams: only integer/string element types, no peek/forEach, order-independent or encounter-order terminals | execution is sequential in JS; results of these terminals are specified to be the same, double sums are not (summation order). |
| unordered() only right before order-insensitive terminals | the reference may then pick any elements for limit/distinct. |
| IdentityHashMap: small int keys/values only, no value-growing ops, no hashCode | reference identity equals JS === only for cached boxed ints (-128..127); its hashCode is identity-based. |
| toString compared only where formats are claimed compatible | ordered collections, maps, Optional, summary statistics and int/string streams; a JS number cannot tell 1.0 from 1, so no toString of double collections. |
| Collection/Queue wrappers, views and PriorityQueue/ArrayDeque: no hashCode | identity-based in the reference (equals is compared: identity semantics are specified). |
Divergences
Section titled “Divergences”Stream pipe:primIter result ref=value ours=value
Section titled “Stream pipe:primIter result ref=value ours=value”- scripts: 9; assessment: intentional. iterator()/spliterator() over flatMap: ours pulls the mapped stream one element at a time (so an infinite mapped stream still yields); the reference pushes the whole mapped stream into its buffer, so an upstream peek sees more elements. Results are equal; how many elements peek observes is unspecified.
@28-1954 Stream>> pipe generate 5 | limit 6 | flatMapToLong dup | peek | primIter N ref : [5] LOG[5,5] ours: [5] LOG[5]Stream pipe:splwT result ref=value ours=value
Section titled “Stream pipe:splwT result ref=value ours=value”- scripts: 7; assessment: intentional. iterator()/spliterator() over flatMap: ours pulls the mapped stream one element at a time (so an infinite mapped stream still yields); the reference pushes the whole mapped stream into its buffer, so an upstream peek sees more elements. Results are equal; how many elements peek observes is unspecified.
@24-1577 Stream>> pipe diterate2 4.5 third | limit 1 | flatMap dup | peek | splwT e,t,c ref : [UNKNOWN,45e-1,ORDERED] LOG[45e-1,45e-1] ours: [UNKNOWN,45e-1,ORDERED] LOG[45e-1]HashSet splw result ref=value ours=value
Section titled “HashSet splw result ref=value ours=value”- scripts: 6; assessment: reference-quirk. HashMap/HashSet spliterators of the reference drop SIZED from characteristics() after traversal; the Spliterator contract says characteristics are stable between splits, ours keeps SIZED.
@3-3880 HashSet init [']>> splw c,f,c,x,f,t ref : "[DISTINCT|SIZED,#1,DISTINCT,~,#0,false]" ;; [""] ours: "[DISTINCT|SIZED,#1,DISTINCT|SIZED,~,#0,false]" ;; [""]HashSet/synchronizedSet splw result ref=value ours=value
Section titled “HashSet/synchronizedSet splw result ref=value ours=value”- scripts: 6; assessment: reference-quirk. HashMap/HashSet spliterators of the reference drop SIZED from characteristics() after traversal; the Spliterator contract says characteristics are stable between splits, ours keeps SIZED.
@33-1075 HashSet/synchronizedSet init [9]>> splw f,f,f,f,c ref : "[#1,#0,#0,#0,DISTINCT]" ;; [9] || [9] ours: "[#1,#0,#0,#0,DISTINCT|SIZED]" ;; [9] || [9]Stack/reversed litw result ref=value ours=value
Section titled “Stack/reversed litw result ref=value ours=value”- scripts: 4; assessment: reference-quirk. list iterator of a reversed() view: the reference accepts set()/remove() right after add(), which ListIterator specifies as IllegalStateException; ours throws IllegalStateException.
@29-2739 Stack/reversed init []>> litw 0 a:16,s:11,r,i ref : "[a,s,r,0]" ;; [] || [] ours: "[a,EXC:IllegalStateException]" ;; [16] || [16]AbsSeqList/reversed litw result ref=value ours=value
Section titled “AbsSeqList/reversed litw result ref=value ours=value”- scripts: 4; assessment: reference-quirk. list iterator of a reversed() view: the reference accepts set()/remove() right after add(), which ListIterator specifies as IllegalStateException; ours throws IllegalStateException.
@31-4103 AbsSeqList/reversed init [8,3]>> litw 2 a:3,j,s:1,h,s:1,a:3,r,p ref : "[a,2,s,false,s,a,r,1]" ;; [3,8,1] || [1,8,3] ours: "[a,2,EXC:IllegalStateException]" ;; [3,8,3] || [3,8,3]Vector/reversed/subList litw result ref=value ours=value
Section titled “Vector/reversed/subList litw result ref=value ours=value”- scripts: 2; assessment: reference-quirk. list iterator of a reversed() view: the reference accepts set()/remove() right after add(), which ListIterator specifies as IllegalStateException; ours throws IllegalStateException.
@25-2709 Vector/reversed/subList:1:2 init ['c,'bb] addAt 1 'b>> litw 2 a:',s:'ca,n,f ref : "[a,s,EXC:NoSuchElementException]" ;; ["c","b","ca"] || ["ca","b","c","bb"] ours: "[a,EXC:IllegalStateException]" ;; ["c","b",""] || ["","b","c","bb"]HashSet/unmodifiableSet splw result ref=value ours=value
Section titled “HashSet/unmodifiableSet splw result ref=value ours=value”- scripts: 2; assessment: reference-quirk. HashMap/HashSet spliterators of the reference drop SIZED from characteristics() after traversal; the Spliterator contract says characteristics are stable between splits, ours keeps SIZED.
@5-1200 HashSet/unmodifiableSet init ['ab]>> splw f,x,x,c,g ref : "[#1,~,~,DISTINCT,EXC:IllegalStateException]" ;; ["ab"] || ["ab"] ours: "[#1,~,~,DISTINCT|SIZED,EXC:IllegalStateException]" ;; ["ab"] || ["ab"]Vector/reversed litw result ref=value ours=value
Section titled “Vector/reversed litw result ref=value ours=value”- scripts: 2; assessment: reference-quirk. list iterator of a reversed() view: the reference accepts set()/remove() right after add(), which ListIterator specifies as IllegalStateException; ours throws IllegalStateException.
@2-3470 Vector/reversed init ['c,'ca,null,'a]>> litw 4 i,h,a:'b,a:'b,h,r,s:'a,p ref : "[4,false,a,a,false,r,EXC:IllegalStateException]" ;; ["a",null,"ca","c","b"] || ["b","c","ca",null,"a"] ours: "[4,false,a,a,false,EXC:IllegalStateException]" ;; ["a",null,"ca","c","b","b"] || ["b","b","c","ca",null,"a"]AbsSeqList/reversed/subList litw result ref=value ours=value
Section titled “AbsSeqList/reversed/subList litw result ref=value ours=value”- scripts: 2; assessment: reference-quirk. list iterator of a reversed() view: the reference accepts set()/remove() right after add(), which ListIterator specifies as IllegalStateException; ours throws IllegalStateException.
@11-4873 AbsSeqList/reversed/subList:2:3 init ['ab,'ca,'b]>> litw 1 a:'b,s:',f ref : "[a,s,[]]" ;; ["ab",""] || ["","ab","ca","b"] ours: "[a,EXC:IllegalStateException]" ;; ["ab","b"] || ["b","ab","ca","b"]HashSet/checkedSet splw result ref=value ours=value
Section titled “HashSet/checkedSet splw result ref=value ours=value”- scripts: 2; assessment: reference-quirk. HashMap/HashSet spliterators of the reference drop SIZED from characteristics() after traversal; the Spliterator contract says characteristics are stable between splits, ours keeps SIZED.
@22-1021 HashSet/checkedSet:int init [5]>> splw f,x,c,t,k ref : "[#1,~,DISTINCT,false,false]" ;; [5] || [5] ours: "[#1,~,DISTINCT|SIZED,false,false]" ;; [5] || [5]HashMap/newSetFromMap splw result ref=value ours=value
Section titled “HashMap/newSetFromMap splw result ref=value ours=value”- scripts: 2; assessment: reference-quirk. HashMap/HashSet spliterators of the reference drop SIZED from characteristics() after traversal; the Spliterator contract says characteristics are stable between splits, ours keeps SIZED.
@30-1800 HashMap/newSetFromMap init [']>> splw f,c,s,c,s ref : "[#1,DISTINCT,S#0]" ;; [""] || {""=true} ours: "[#1,DISTINCT|SIZED,S#0]" ;; [""] || {""=true}Stream pipe:forEach result ref=value ours=value
Section titled “Stream pipe:forEach result ref=value ours=value”- scripts: 1; assessment: intentional. Gatherers.mapConcurrent: the reference runs the mapper ahead on up to maxConcurrency virtual threads, so an upstream peek observes (and a failing mapper throws for) elements before earlier results reach downstream; ours maps sequentially in order. Results and the exception type are the same; side-effect timing is unspecified.
@19-3223 Stream>> pipe builder [-5,8] | peek | gather custom mapConc | forEach ref : "void" LOG[-5,8,-4,9] ours: "void" LOG[-5,-4,8,9]Stream pipe:anyMatch result ref=EXC:NullPointerException ours=value
Section titled “Stream pipe:anyMatch result ref=EXC:NullPointerException ours=value”- scripts: 1; assessment: intentional. Gatherers.mapConcurrent: the reference runs the mapper ahead on up to maxConcurrency virtual threads, so an upstream peek observes (and a failing mapper throws for) elements before earlier results reach downstream; ours maps sequentially in order. Results and the exception type are the same; side-effect timing is unspecified.
@19-3340 Stream>> pipe concat ['a,null] [] | map len | gather custom mapConc | anyMatch lt10 ref : EXC:NullPointerException ours: trueStream pipe:allMatch result ref=value ours=value
Section titled “Stream pipe:allMatch result ref=value ours=value”- scripts: 1; assessment: intentional. Gatherers.mapConcurrent: the reference runs the mapper ahead on up to maxConcurrency virtual threads, so an upstream peek observes (and a failing mapper throws for) elements before earlier results reach downstream; ours maps sequentially in order. Results and the exception type are the same; side-effect timing is unspecified.
@27-2412 Stream>> pipe iterate3 2 lt10 times2 | peek | gather custom mapConc | peek | allMatch lt10 ref : true LOG[2,4,8,3,5,9] ours: true LOG[2,3,4,5,8,9]Vector/subList/reversed litw result ref=value ours=value
Section titled “Vector/subList/reversed litw result ref=value ours=value”- scripts: 1; assessment: reference-quirk. list iterator of a reversed() view: the reference accepts set()/remove() right after add(), which ListIterator specifies as IllegalStateException; ours throws IllegalStateException.
@12-3768 Vector/subList:1:1/reversed init [8]>> litw 0 h,h,a:8,s:11 ref : "[false,false,a,s]" ;; [11] || [8,11] ours: "[false,false,a,EXC:IllegalStateException]" ;; [8] || [8,8]Stream pipe:count result ref=EXC:NullPointerException ours=value
Section titled “Stream pipe:count result ref=EXC:NullPointerException ours=value”- scripts: 1; assessment: intentional. Gatherers.mapConcurrent: the reference runs the mapper ahead on up to maxConcurrency virtual threads, so an upstream peek observes (and a failing mapper throws for) elements before earlier results reach downstream; ours maps sequentially in order. Results and the exception type are the same; side-effect timing is unspecified.
@20-971 Stream>> pipe sstreamSup LinkedList [8,null] | takeWhile lt10 | gather custom mapConc | takeWhile even | count ref : EXC:NullPointerException ours: 0AbsList/reversed/subList litw result ref=value ours=value
Section titled “AbsList/reversed/subList litw result ref=value ours=value”- scripts: 1; assessment: reference-quirk. list iterator of a reversed() view: the reference accepts set()/remove() right after add(), which ListIterator specifies as IllegalStateException; ours throws IllegalStateException.
@5-3604 AbsList/reversed/subList:2:3 init [9,2,3] nCopiesAddAll 1 6>> litw 1 f,s:0,p,j,a:8,s:0,p,a:8 ref : "[[6],s,0,0,a,s,0,a]" ;; [9,8,0,0] || [0,0,8,9,2,3] ours: "[[6],s,0,0,a,EXC:IllegalStateException]" ;; [9,8,0] || [0,8,9,2,3]Stream pipe:iterT result ref=value ours=value
Section titled “Stream pipe:iterT result ref=value ours=value”- scripts: 1; assessment: intentional. iterator()/spliterator() over flatMap: ours pulls the mapped stream one element at a time (so an infinite mapped stream still yields); the reference pushes the whole mapped stream into its buffer, so an upstream peek sees more elements. Results are equal; how many elements peek observes is unspecified.
@6-3085 Stream>> pipe slong [7] | flatMap upto | peek | boxed | iterT n,h,h ref : [0,true,true] LOG[0,1,2] ours: [0,true,true] LOG[0,1]Stream pipe:collect3 result ref=EXC:NullPointerException ours=EXC:NullPointerException
Section titled “Stream pipe:collect3 result ref=EXC:NullPointerException ours=EXC:NullPointerException”- scripts: 1; assessment: intentional. Gatherers.mapConcurrent: the reference runs the mapper ahead on up to maxConcurrency virtual threads, so an upstream peek observes (and a failing mapper throws for) elements before earlier results reach downstream; ours maps sequentially in order. Results and the exception type are the same; side-effect timing is unspecified.
@7-3445 Stream>> pipe builder [null,0] | peek | gather custom mapConc | collect3 ref : EXC:NullPointerException LOG[null,0] ours: EXC:NullPointerException LOG[null]AbsList/reversed litw result ref=value ours=value
Section titled “AbsList/reversed litw result ref=value ours=value”- scripts: 1; assessment: reference-quirk. list iterator of a reversed() view: the reference accepts set()/remove() right after add(), which ListIterator specifies as IllegalStateException; ours throws IllegalStateException.
@8-3061 AbsList/reversed init ['a,'ab,',null]>> litw 1 n,n,n,a:',s:'c,j,j ref : "["","ab","a",a,s,4,4]" ;; [null,"","ab","a","c"] || ["c","a","ab","",null] ours: "["","ab","a",a,EXC:IllegalStateException]" ;; [null,"","ab","a",""] || ["","a","ab","",null]API coverage matrix
Section titled “API coverage matrix”Every public member read from the declarations of src/index.ts, with the number of harness calls whose results were compared. Calls the library makes internally are not counted. Interface rows count calls on library-internal implementations (views, iterators, streams, spliterators, collectors, …). Exception rows count how often that exception type was the compared outcome of an op.
| Owner | Covered | Excluded |
|---|---|---|
| Enumeration (interface) | 3/3 | 0 |
| Iterator (interface) | 4/4 | 0 |
| ListIterator (interface) | 10/10 | 0 |
| WritableArrayLike (interface) | 0/0 | 1 |
| Collection (interface) | 19/19 | 1 |
| SequencedCollection (interface) | 26/26 | 1 |
| Queue (interface) | 23/23 | 1 |
| Deque (interface) | 41/41 | 1 |
| SequencedSet (interface) | 27/27 | 0 |
| SortedSet (interface) | 33/33 | 0 |
| NavigableSet (interface) | 41/41 | 0 |
| MapEntry (interface) | 6/6 | 0 |
| SequencedMap (interface) | 34/34 | 0 |
| SortedMap (interface) | 40/40 | 0 |
| NavigableMap (interface) | 51/51 | 0 |
| List (object) | 2/2 | 1 |
| List (interface) | 36/36 | 0 |
| Set (object) | 2/2 | 1 |
| Set (interface) | 20/20 | 0 |
| Map (object) | 5/5 | 1 |
| Map (interface) | 24/24 | 0 |
| Comparator (object) | 14/14 | 2 |
| naturalCompare (object) | 1/1 | 0 |
| Comparable (interface) | 0/0 | 1 |
| Objects (object) | 14/14 | 2 |
| RANDOM_ACCESS (object) | 0/0 | 1 |
| isRandomAccess (object) | 1/1 | 0 |
| RandomAccess (interface) | 0/0 | 1 |
| AbstractCollection (class) | 16/16 | 6 |
| AbstractList (class) | 32/32 | 8 |
| AbstractSequentialList (class) | 34/34 | 6 |
| AbstractQueue (class) | 18/18 | 8 |
| AbstractSet (class) | 17/17 | 6 |
| AbstractMap (class) | 22/22 | 4 |
| SimpleEntry (class) | 6/6 | 1 |
| SimpleImmutableEntry (class) | 6/6 | 1 |
| ArrayList (class) | 39/39 | 5 |
| ArrayList (static) | 0/0 | 1 |
| LinkedList (class) | 52/52 | 4 |
| LinkedList (static) | 0/0 | 1 |
| Vector (class) | 52/52 | 6 |
| Vector (static) | 0/0 | 1 |
| Stack (class) | 57/57 | 6 |
| Stack (static) | 0/0 | 1 |
| ArrayDeque (class) | 42/42 | 3 |
| ArrayDeque (static) | 0/0 | 1 |
| PriorityQueue (class) | 24/24 | 3 |
| PriorityQueue (static) | 0/0 | 1 |
| HashMap (class) | 25/25 | 5 |
| HashMap (static) | 1/1 | 1 |
| LinkedHashMap (class) | 35/35 | 6 |
| LinkedHashMap (static) | 2/2 | 2 |
| TreeMap (class) | 52/52 | 2 |
| IdentityHashMap (class) | 24/24 | 4 |
| HashSet (class) | 21/21 | 4 |
| HashSet (static) | 1/1 | 1 |
| LinkedHashSet (class) | 28/28 | 4 |
| LinkedHashSet (static) | 2/2 | 1 |
| TreeSet (class) | 42/42 | 3 |
| TreeSet (static) | 0/0 | 1 |
| Collections (object) | 67/67 | 0 |
| Stream (object) | 7/7 | 2 |
| Stream (interface) | 43/43 | 1 |
| IntStream (object) | 8/8 | 1 |
| IntStream (interface) | 41/41 | 1 |
| LongStream (object) | 8/8 | 1 |
| LongStream (interface) | 40/40 | 1 |
| DoubleStream (object) | 6/6 | 1 |
| DoubleStream (interface) | 39/39 | 1 |
| BaseStream (interface) | 8/8 | 1 |
| StreamBuilder (interface) | 3/3 | 0 |
| NumberStreamBuilder (interface) | 3/3 | 0 |
| PrimitiveIteratorOfInt (interface) | 5/5 | 0 |
| PrimitiveIteratorOfLong (interface) | 5/5 | 0 |
| PrimitiveIteratorOfDouble (interface) | 5/5 | 0 |
| StreamSupport (object) | 4/4 | 0 |
| Collectors (object) | 30/30 | 0 |
| Collector (object) | 2/2 | 0 |
| Collector (interface) | 5/5 | 0 |
| Gatherers (object) | 5/5 | 0 |
| Gatherer (object) | 5/5 | 0 |
| Gatherer (interface) | 5/5 | 0 |
| Integrator (object) | 2/2 | 0 |
| Integrator (interface) | 0/0 | 1 |
| Downstream (interface) | 2/2 | 0 |
| DefinedGatherer (interface) | 5/5 | 0 |
| Optional (class) | 16/16 | 1 |
| Optional (static) | 3/3 | 0 |
| OptionalInt (class) | 12/12 | 1 |
| OptionalInt (static) | 2/2 | 0 |
| OptionalLong (class) | 12/12 | 1 |
| OptionalLong (static) | 2/2 | 0 |
| OptionalDouble (class) | 12/12 | 1 |
| OptionalDouble (static) | 2/2 | 0 |
| Spliterator (object) | 8/8 | 0 |
| Spliterator (interface) | 8/8 | 0 |
| Spliterators (static) | 11/11 | 0 |
| IntSummaryStatistics (class) | 8/8 | 1 |
| LongSummaryStatistics (class) | 8/8 | 1 |
| DoubleSummaryStatistics (class) | 8/8 | 1 |
| RuntimeException (class) | 0/0 | 1 |
| IndexOutOfBoundsException (class) | 1/1 | 0 |
| ArrayIndexOutOfBoundsException (class) | 1/1 | 0 |
| NoSuchElementException (class) | 1/1 | 0 |
| EmptyStackException (class) | 1/1 | 0 |
| NullPointerException (class) | 1/1 | 0 |
| IllegalArgumentException (class) | 1/1 | 0 |
| IllegalStateException (class) | 1/1 | 0 |
| UnsupportedOperationException (class) | 1/1 | 0 |
| ConcurrentModificationException (class) | 1/1 | 0 |
| ClassCastException (class) | 1/1 | 0 |
Enumeration (interface)
| Member | Times compared |
|---|---|
| hasMoreElements | 3,851 |
| nextElement | 8,096 |
| asIterator | 3,963 |
Iterator (interface)
| Member | Times compared |
|---|---|
| hasNext | 4,128,562 |
| next | 3,224,972 |
| remove | 20,845 |
| forEachRemaining | 31,137 |
ListIterator (interface)
| Member | Times compared |
|---|---|
| hasPrevious | 4,018 |
| previous | 3,366 |
| nextIndex | 514 |
| previousIndex | 533 |
| set | 2,718 |
| add | 1,692 |
| hasNext | 2,100,978 |
| next | 1,562,768 |
| remove | 6,865 |
| forEachRemaining | 7,349 |
WritableArrayLike (interface)
| Member | Times compared |
|---|---|
| length | excluded: type helper, not a runtime API |
Collection (interface)
| Member | Times compared |
|---|---|
| iterator | 833,995 |
| forEach | 9,015 |
| size | 9,815 |
| isEmpty | 9,043 |
| contains | 16,951 |
| toArray | 22,785 |
| add | 32,485 |
| remove | 29,071 |
| containsAll | 9,159 |
| addAll | 13,309 |
| removeAll | 9,157 |
| removeIf | 16,787 |
| retainAll | 16,677 |
| clear | 11,403 |
| equals | 20,564 |
| hashCode | excluded: identity hash code in the reference for these wrappers/views (not overridden there) |
| toString | 11,420 |
| spliterator | 9,041 |
| stream | 32,694 |
| parallelStream | 9,289 |
SequencedCollection (interface)
| Member | Times compared |
|---|---|
| reversed | 7,723 |
| addFirst | 4,250 |
| addLast | 4,325 |
| getFirst | 4,291 |
| getLast | 4,331 |
| removeFirst | 4,307 |
| removeLast | 4,340 |
| iterator | 501,167 |
| forEach | 4,649 |
| size | 5,340 |
| isEmpty | 4,630 |
| contains | 8,090 |
| toArray | 13,333 |
| add | 19,624 |
| remove | 12,947 |
| containsAll | 4,823 |
| addAll | 8,998 |
| removeAll | 4,714 |
| removeIf | 7,986 |
| retainAll | 6,276 |
| clear | 6,913 |
| equals | 11,581 |
| hashCode | excluded: identity hash code in the reference for these wrappers/views (not overridden there) |
| toString | 7,009 |
| spliterator | 4,698 |
| stream | 19,480 |
| parallelStream | 4,755 |
Queue (interface)
| Member | Times compared |
|---|---|
| offer | 63 |
| remove | 219 |
| poll | 45 |
| element | 53 |
| peek | 67 |
| iterator | 5,658 |
| forEach | 80 |
| size | 64 |
| isEmpty | 61 |
| contains | 58 |
| toArray | 206 |
| add | 258 |
| containsAll | 59 |
| addAll | 90 |
| removeAll | 76 |
| removeIf | 55 |
| retainAll | 56 |
| clear | 67 |
| equals | 127 |
| hashCode | excluded: identity hash code in the reference for these wrappers/views (not overridden there) |
| toString | 57 |
| spliterator | 59 |
| stream | 201 |
| parallelStream | 63 |
Deque (interface)
| Member | Times compared |
|---|---|
| remove | 219 |
| offerFirst | 65 |
| offerLast | 69 |
| pollFirst | 52 |
| pollLast | 70 |
| peekFirst | 59 |
| peekLast | 80 |
| removeFirstOccurrence | 78 |
| removeLastOccurrence | 55 |
| push | 57 |
| pop | 67 |
| descendingIterator | 131 |
| reversed | 60 |
| offer | 63 |
| poll | 45 |
| element | 53 |
| peek | 67 |
| iterator | 5,658 |
| forEach | 80 |
| size | 64 |
| isEmpty | 61 |
| contains | 58 |
| toArray | 206 |
| add | 258 |
| containsAll | 59 |
| addAll | 90 |
| removeAll | 76 |
| removeIf | 55 |
| retainAll | 56 |
| clear | 67 |
| equals | 127 |
| hashCode | excluded: identity hash code in the reference for these wrappers/views (not overridden there) |
| toString | 57 |
| spliterator | 59 |
| stream | 201 |
| parallelStream | 63 |
| addFirst | 60 |
| addLast | 44 |
| getFirst | 63 |
| getLast | 61 |
| removeFirst | 62 |
| removeLast | 70 |
SequencedSet (interface)
| Member | Times compared |
|---|---|
| reversed | 1,664 |
| iterator | 170,127 |
| forEach | 2,112 |
| size | 2,131 |
| isEmpty | 2,003 |
| contains | 5,492 |
| toArray | 4,325 |
| add | 6,298 |
| remove | 5,795 |
| containsAll | 2,104 |
| addAll | 1,955 |
| removeAll | 2,143 |
| removeIf | 5,406 |
| retainAll | 3,663 |
| clear | 3,169 |
| equals | 4,180 |
| hashCode | 2,169 |
| toString | 2,066 |
| spliterator | 2,071 |
| stream | 6,176 |
| parallelStream | 2,085 |
| addFirst | 1,751 |
| addLast | 1,763 |
| getFirst | 1,794 |
| getLast | 1,802 |
| removeFirst | 1,792 |
| removeLast | 1,795 |
SortedSet (interface)
| Member | Times compared |
|---|---|
| comparator | 1,401 |
| first | 1,412 |
| last | 1,427 |
| headSet | 3,807 |
| tailSet | 2,107 |
| subSet | 2,932 |
| reversed | 1,371 |
| iterator | 128,274 |
| forEach | 1,515 |
| size | 1,525 |
| isEmpty | 1,433 |
| contains | 1,514 |
| toArray | 2,991 |
| add | 4,906 |
| remove | 3,429 |
| containsAll | 1,480 |
| addAll | 1,454 |
| removeAll | 1,492 |
| removeIf | 1,472 |
| retainAll | 1,970 |
| clear | 2,646 |
| equals | 2,977 |
| hashCode | 1,566 |
| toString | 1,483 |
| spliterator | 1,462 |
| stream | 4,440 |
| parallelStream | 1,518 |
| addFirst | 1,431 |
| addLast | 1,416 |
| getFirst | 1,414 |
| getLast | 1,430 |
| removeFirst | 1,399 |
| removeLast | 1,412 |
NavigableSet (interface)
| Member | Times compared |
|---|---|
| lower | 745 |
| floor | 734 |
| ceiling | 748 |
| higher | 798 |
| pollFirst | 2,037 |
| pollLast | 748 |
| descendingSet | 2,130 |
| descendingIterator | 1,497 |
| headSet | 3,807 |
| tailSet | 2,107 |
| subSet | 2,932 |
| reversed | 1,371 |
| comparator | 1,401 |
| first | 1,412 |
| last | 1,427 |
| iterator | 128,274 |
| forEach | 1,515 |
| size | 1,525 |
| isEmpty | 1,433 |
| contains | 1,514 |
| toArray | 2,991 |
| add | 4,906 |
| remove | 3,429 |
| containsAll | 1,480 |
| addAll | 1,454 |
| removeAll | 1,492 |
| removeIf | 1,472 |
| retainAll | 1,970 |
| clear | 2,646 |
| equals | 2,977 |
| hashCode | 1,566 |
| toString | 1,483 |
| spliterator | 1,462 |
| stream | 4,440 |
| parallelStream | 1,518 |
| addFirst | 1,431 |
| addLast | 1,416 |
| getFirst | 1,414 |
| getLast | 1,430 |
| removeFirst | 1,399 |
| removeLast | 1,412 |
MapEntry (interface)
| Member | Times compared |
|---|---|
| getKey | 802,781 |
| getValue | 808,355 |
| setValue | 9,962 |
| equals | 4,459 |
| hashCode | 4,643 |
| toString | 4,630 |
SequencedMap (interface)
| Member | Times compared |
|---|---|
| reversed | 1,027 |
| firstEntry | 1,021 |
| lastEntry | 1,016 |
| pollFirstEntry | 1,013 |
| pollLastEntry | 967 |
| putFirst | 963 |
| putLast | 931 |
| sequencedKeySet | 1,056 |
| sequencedValues | 1,047 |
| sequencedEntrySet | 1,018 |
| size | 1,011 |
| isEmpty | 958 |
| containsKey | 1,012 |
| containsValue | 999 |
| get | 996 |
| put | 3,618 |
| remove | 1,991 |
| putAll | 1,018 |
| clear | 1,748 |
| keySet | 4,640 |
| values | 2,703 |
| entrySet | 91,386 |
| equals | 1,015 |
| hashCode | 1,048 |
| toString | 987 |
| getOrDefault | 1,053 |
| forEach | 969 |
| replaceAll | 974 |
| putIfAbsent | 1,033 |
| replace | 2,084 |
| computeIfAbsent | 1,039 |
| computeIfPresent | 1,027 |
| compute | 1,030 |
| merge | 997 |
SortedMap (interface)
| Member | Times compared |
|---|---|
| comparator | 884 |
| firstKey | 960 |
| lastKey | 917 |
| headMap | 1,727 |
| tailMap | 1,248 |
| subMap | 1,585 |
| reversed | 939 |
| firstEntry | 939 |
| lastEntry | 933 |
| pollFirstEntry | 936 |
| pollLastEntry | 883 |
| putFirst | 855 |
| putLast | 845 |
| sequencedKeySet | 906 |
| sequencedValues | 953 |
| sequencedEntrySet | 922 |
| size | 924 |
| isEmpty | 868 |
| containsKey | 906 |
| containsValue | 893 |
| get | 897 |
| put | 3,221 |
| remove | 1,764 |
| putAll | 920 |
| clear | 1,652 |
| keySet | 4,197 |
| values | 2,485 |
| entrySet | 84,925 |
| equals | 906 |
| hashCode | 947 |
| toString | 901 |
| getOrDefault | 935 |
| forEach | 859 |
| replaceAll | 879 |
| putIfAbsent | 944 |
| replace | 1,874 |
| computeIfAbsent | 940 |
| computeIfPresent | 938 |
| compute | 947 |
| merge | 894 |
NavigableMap (interface)
| Member | Times compared |
|---|---|
| lowerEntry | 323 |
| lowerKey | 388 |
| floorEntry | 357 |
| floorKey | 354 |
| ceilingEntry | 355 |
| ceilingKey | 315 |
| higherEntry | 394 |
| higherKey | 343 |
| descendingMap | 1,009 |
| navigableKeySet | 1,033 |
| descendingKeySet | 374 |
| headMap | 1,727 |
| tailMap | 1,248 |
| subMap | 1,585 |
| reversed | 939 |
| comparator | 884 |
| firstKey | 960 |
| lastKey | 917 |
| firstEntry | 939 |
| lastEntry | 933 |
| pollFirstEntry | 936 |
| pollLastEntry | 883 |
| putFirst | 855 |
| putLast | 845 |
| sequencedKeySet | 906 |
| sequencedValues | 953 |
| sequencedEntrySet | 922 |
| size | 924 |
| isEmpty | 868 |
| containsKey | 906 |
| containsValue | 893 |
| get | 897 |
| put | 3,221 |
| remove | 1,764 |
| putAll | 920 |
| clear | 1,652 |
| keySet | 4,197 |
| values | 2,485 |
| entrySet | 84,925 |
| equals | 906 |
| hashCode | 947 |
| toString | 901 |
| getOrDefault | 935 |
| forEach | 859 |
| replaceAll | 879 |
| putIfAbsent | 944 |
| replace | 1,874 |
| computeIfAbsent | 940 |
| computeIfPresent | 938 |
| compute | 947 |
| merge | 894 |
List (object)
| Member | Times compared |
|---|---|
| of | 8,698 |
| copyOf | 2,716 |
| ofLazy | excluded: API newer than the reference runtime (JDK 23) |
List (interface)
| Member | Times compared |
|---|---|
| add | 12,540 |
| addAll | 6,785 |
| get | 2,405 |
| set | 2,299 |
| removeAt | 2,350 |
| indexOf | 2,256 |
| lastIndexOf | 2,320 |
| listIterator | 11,859 |
| subList | 14,528 |
| replaceAll | 2,437 |
| sort | 4,737 |
| reversed | 5,886 |
| addFirst | 2,320 |
| addLast | 2,383 |
| getFirst | 2,325 |
| getLast | 2,350 |
| removeFirst | 2,331 |
| removeLast | 2,354 |
| iterator | 311,262 |
| forEach | 2,244 |
| size | 2,944 |
| isEmpty | 2,343 |
| contains | 2,326 |
| toArray | 8,126 |
| remove | 4,809 |
| containsAll | 2,448 |
| removeAll | 2,294 |
| removeIf | 2,312 |
| retainAll | 2,356 |
| clear | 3,455 |
| equals | 6,817 |
| hashCode | 2,274 |
| toString | 4,627 |
| spliterator | 2,342 |
| stream | 12,483 |
| parallelStream | 2,362 |
Set (object)
| Member | Times compared |
|---|---|
| of | 2,392 |
| copyOf | 2,632 |
| ofLazy | excluded: API newer than the reference runtime (JDK 23) |
Set (interface)
| Member | Times compared |
|---|---|
| iterator | 479,169 |
| forEach | 6,051 |
| size | 6,157 |
| isEmpty | 5,994 |
| contains | 13,927 |
| toArray | 12,391 |
| add | 17,816 |
| remove | 19,915 |
| containsAll | 6,014 |
| addAll | 5,829 |
| removeAll | 6,148 |
| removeIf | 13,812 |
| retainAll | 13,646 |
| clear | 7,248 |
| equals | 12,249 |
| hashCode | 5,907 |
| toString | 6,045 |
| spliterator | 5,969 |
| stream | 18,052 |
| parallelStream | 6,159 |
Map (object)
| Member | Times compared |
|---|---|
| of | 2,354 |
| ofEntries | 2,102 |
| entry | 12,886 |
| copyOf | 2,891 |
| ofLazy | excluded: API newer than the reference runtime (JDK 23) |
| Entry | 7,495 |
Map (interface)
| Member | Times compared |
|---|---|
| size | 4,886 |
| isEmpty | 4,718 |
| containsKey | 4,839 |
| containsValue | 4,708 |
| get | 4,697 |
| put | 15,093 |
| remove | 9,574 |
| putAll | 4,856 |
| clear | 5,609 |
| keySet | 19,034 |
| values | 9,276 |
| entrySet | 261,166 |
| equals | 4,795 |
| hashCode | 4,809 |
| toString | 4,852 |
| getOrDefault | 4,837 |
| forEach | 4,802 |
| replaceAll | 4,696 |
| putIfAbsent | 4,768 |
| replace | 9,661 |
| computeIfAbsent | 4,889 |
| computeIfPresent | 4,860 |
| compute | 4,840 |
| merge | 4,696 |
Comparator (object)
| Member | Times compared |
|---|---|
| naturalOrder | 43,385 |
| reverseOrder | 29,049 |
| reversed | 8,515 |
| comparing | 9,610 |
| comparingInt | 153,857 |
| comparingLong | 5,000 |
| comparingDouble | 4,948 |
| thenComparing | 11,790 |
| thenComparingBy | 9,571 |
| thenComparingInt | 4,901 |
| thenComparingLong | 4,841 |
| thenComparingDouble | 4,639 |
| nullsFirst | 16,005 |
| nullsLast | 16,057 |
| max | excluded: API newer than the reference runtime (JDK 23) |
| min | excluded: API newer than the reference runtime (JDK 23) |
naturalCompare (object)
| Member | Times compared |
|---|---|
| () | 4,996 |
Comparable (interface)
| Member | Times compared |
|---|---|
| compareTo | excluded: implemented by user element types, not by the library |
Objects (object)
| Member | Times compared |
|---|---|
| equals | 2,767 |
| hashCode | 679 |
| hash | 703 |
| identityHashCode | excluded: identity-based values; differ by design between runtimes |
| requireNonNull | 2,111 |
| isNull | 642 |
| nonNull | 701 |
| toString | 1,366 |
| checkIndex | 1,708 |
| checkFromToIndex | 1,594 |
| checkFromIndexSize | 1,715 |
| requireNonNullElse | 718 |
| requireNonNullElseGet | 670 |
| compare | 1,663 |
| deepEquals | 1,646 |
| toIdentityString | excluded: identity-based values; differ by design between runtimes |
RANDOM_ACCESS (object)
| Member | Times compared |
|---|---|
| (value) | excluded: JS symbol constant (marker); RandomAccess itself is compared through isRandomAccess |
isRandomAccess (object)
| Member | Times compared |
|---|---|
| () | 3,420 |
RandomAccess (interface)
| Member | Times compared |
|---|---|
| [RANDOM_ACCESS] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
AbstractCollection (class)
| Member | Times compared |
|---|---|
| iterator | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| size | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| isEmpty | 698 |
| contains | 668 |
| toArray | 2,068 |
| add | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| remove | 1,369 |
| containsAll | 660 |
| addAll | 3,115 |
| removeAll | 664 |
| retainAll | 666 |
| removeIf | 671 |
| clear | 671 |
| forEach | 669 |
| spliterator | 712 |
| stream | 2,077 |
| parallelStream | 709 |
| equals | 1,361 |
| hashCode | excluded: identity hash code in the reference (not overridden there) |
| toString | 652 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
AbstractList (class)
| Member | Times compared |
|---|---|
| modCount | excluded: implementation field (protected in the reference) |
| get | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| set | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| removeAt | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| add | 693 |
| addAll | 2,695 |
| indexOf | 126 |
| lastIndexOf | 122 |
| clear | 120 |
| removeRange | excluded: protected in the reference (exercised indirectly through subList(..).clear()) |
| iterator | 19,109 |
| listIterator | 654 |
| subList | 1,167 |
| spliterator | 123 |
| replaceAll | 125 |
| sort | 255 |
| addFirst | 110 |
| addLast | 113 |
| getFirst | 144 |
| getLast | 134 |
| removeFirst | 138 |
| removeLast | 140 |
| reversed | 789 |
| equals | 262 |
| hashCode | 131 |
| size | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| isEmpty | 130 |
| contains | 145 |
| toArray | 386 |
| remove | 271 |
| containsAll | 119 |
| removeAll | 116 |
| retainAll | 129 |
| removeIf | 125 |
| forEach | 145 |
| stream | 350 |
| parallelStream | 128 |
| toString | 123 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
AbstractSequentialList (class)
| Member | Times compared |
|---|---|
| listIterator | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| get | 127 |
| set | 149 |
| removeAt | 129 |
| iterator | 18,878 |
| modCount | excluded: implementation field (protected in the reference) |
| add | 696 |
| addAll | 2,722 |
| indexOf | 135 |
| lastIndexOf | 130 |
| clear | 134 |
| removeRange | excluded: protected in the reference (exercised indirectly through subList(..).clear()) |
| subList | 1,203 |
| spliterator | 131 |
| replaceAll | 107 |
| sort | 254 |
| addFirst | 122 |
| addLast | 102 |
| getFirst | 131 |
| getLast | 111 |
| removeFirst | 124 |
| removeLast | 145 |
| reversed | 754 |
| equals | 270 |
| hashCode | 121 |
| size | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| isEmpty | 149 |
| contains | 124 |
| toArray | 380 |
| remove | 266 |
| containsAll | 117 |
| removeAll | 126 |
| retainAll | 111 |
| removeIf | 153 |
| forEach | 126 |
| stream | 418 |
| parallelStream | 117 |
| toString | 144 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
AbstractQueue (class)
| Member | Times compared |
|---|---|
| offer | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| poll | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| peek | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| add | 1,641 |
| remove | 1,682 |
| element | 579 |
| clear | 518 |
| addAll | 2,873 |
| iterator | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| size | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| isEmpty | 567 |
| contains | 594 |
| toArray | 1,670 |
| containsAll | 573 |
| removeAll | 568 |
| retainAll | 579 |
| removeIf | 521 |
| forEach | 574 |
| spliterator | 544 |
| stream | 1,772 |
| parallelStream | 542 |
| equals | 1,101 |
| hashCode | excluded: identity hash code in the reference (not overridden there) |
| toString | 555 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
AbstractSet (class)
| Member | Times compared |
|---|---|
| equals | 1,346 |
| removeAll | 648 |
| spliterator | 651 |
| hashCode | 721 |
| [SET_BRAND] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| iterator | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| size | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| isEmpty | 716 |
| contains | 709 |
| toArray | 1,280 |
| add | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| remove | 1,443 |
| containsAll | 700 |
| addAll | 3,077 |
| retainAll | 683 |
| removeIf | 705 |
| clear | 738 |
| forEach | 692 |
| stream | 2,122 |
| parallelStream | 692 |
| toString | 706 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
AbstractMap (class)
| Member | Times compared |
|---|---|
| entrySet | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| size | 691 |
| isEmpty | 711 |
| containsKey | 725 |
| containsValue | 718 |
| get | 747 |
| put | excluded: abstract hook implemented by the subclass (the harness subclass), not library code |
| remove | 1,351 |
| putAll | 721 |
| clear | 713 |
| keySet | 2,651 |
| values | 1,925 |
| equals | 690 |
| hashCode | 642 |
| toString | 716 |
| getOrDefault | 719 |
| forEach | 691 |
| replaceAll | 686 |
| putIfAbsent | 673 |
| replace | 1,342 |
| computeIfAbsent | 707 |
| computeIfPresent | 671 |
| compute | 708 |
| merge | 678 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
SimpleEntry (class)
| Member | Times compared |
|---|---|
| getKey | 3,092 |
| getValue | 3,113 |
| setValue | 3,177 |
| equals | 3,060 |
| hashCode | 3,069 |
| toString | 3,219 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
SimpleImmutableEntry (class)
| Member | Times compared |
|---|---|
| getKey | 39,069 |
| getValue | 39,049 |
| setValue | 2,531 |
| equals | 2,620 |
| hashCode | 2,505 |
| toString | 2,526 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
ArrayList (class)
| Member | Times compared |
|---|---|
| ensureCapacity | 138 |
| trimToSize | 150 |
| clone | 274 |
| size | 3,179 |
| isEmpty | 221 |
| get | 267 |
| set | 300 |
| add | 36,312 |
| removeAt | 309 |
| remove | 469 |
| contains | 228 |
| indexOf | 168 |
| lastIndexOf | 182 |
| toArray | 2,012 |
| clear | 230 |
| forEach | 231 |
| removeRange | excluded: protected in the reference (exercised indirectly through subList(..).clear()) |
| removeIf | 249 |
| replaceAll | 179 |
| sort | 25,111 |
| getFirst | 159 |
| getLast | 152 |
| iterator | 123,314 |
| listIterator | 877 |
| spliterator | 1,251 |
| equals | 608 |
| hashCode | 155 |
| toString | 210 |
| [RANDOM_ACCESS] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| modCount | excluded: implementation field (protected in the reference) |
| addAll | 8,466 |
| subList | 922 |
| addFirst | 181 |
| addLast | 176 |
| removeFirst | 174 |
| removeLast | 178 |
| reversed | 381 |
| containsAll | 228 |
| removeAll | 214 |
| retainAll | 261 |
| stream | 2,801 |
| parallelStream | 236 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
ArrayList (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
LinkedList (class)
| Member | Times compared |
|---|---|
| clone | 222 |
| size | 378 |
| isEmpty | 215 |
| add | 15,938 |
| get | 145 |
| set | 135 |
| removeAt | 147 |
| contains | 249 |
| indexOf | 149 |
| lastIndexOf | 153 |
| toArray | 693 |
| clear | 253 |
| forEach | 238 |
| removeIf | 244 |
| replaceAll | 145 |
| iterator | 32,551 |
| listIterator | 1,323 |
| spliterator | 1,257 |
| addFirst | 399 |
| addLast | 147 |
| getFirst | 188 |
| getLast | 164 |
| removeFirst | 196 |
| removeLast | 132 |
| offer | 172 |
| offerFirst | 161 |
| offerLast | 107 |
| poll | 180 |
| pollFirst | 149 |
| pollLast | 116 |
| peek | 176 |
| peekFirst | 188 |
| peekLast | 102 |
| element | 172 |
| push | 109 |
| pop | 102 |
| remove | 670 |
| removeFirstOccurrence | 124 |
| removeLastOccurrence | 102 |
| descendingIterator | 234 |
| reversed | 355 |
| equals | 597 |
| hashCode | 133 |
| toString | 238 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| modCount | excluded: implementation field (protected in the reference) |
| addAll | 2,822 |
| removeRange | excluded: protected in the reference (exercised indirectly through subList(..).clear()) |
| subList | 760 |
| sort | 265 |
| containsAll | 247 |
| removeAll | 243 |
| retainAll | 252 |
| stream | 2,916 |
| parallelStream | 226 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
LinkedList (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
Vector (class)
| Member | Times compared |
|---|---|
| capacityIncrement | excluded: implementation field (protected in the reference) |
| get | 335 |
| set | 345 |
| removeAt | 371 |
| add | 16,712 |
| clone | 233 |
| ensureCapacity | 513 |
| trimToSize | 589 |
| capacity | 571 |
| indexOf | 378 |
| lastIndexOf | 379 |
| setSize | 536 |
| copyInto | 541 |
| elements | 903 |
| elementAt | 552 |
| firstElement | 558 |
| lastElement | 526 |
| addElement | 594 |
| remove | 780 |
| removeElement | 556 |
| removeElementAt | 530 |
| insertElementAt | 533 |
| setElementAt | 529 |
| removeAllElements | 505 |
| size | 927 |
| isEmpty | 356 |
| contains | 324 |
| toArray | 694 |
| clear | 374 |
| forEach | 405 |
| removeRange | excluded: protected in the reference (exercised indirectly through subList(..).clear()) |
| removeIf | 341 |
| replaceAll | 363 |
| sort | 733 |
| getFirst | 360 |
| getLast | 343 |
| iterator | 50,359 |
| listIterator | 1,876 |
| spliterator | 1,455 |
| equals | 959 |
| hashCode | 387 |
| toString | 365 |
| [RANDOM_ACCESS] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| modCount | excluded: implementation field (protected in the reference) |
| addAll | 5,674 |
| subList | 1,953 |
| addFirst | 365 |
| addLast | 372 |
| removeFirst | 367 |
| removeLast | 340 |
| reversed | 866 |
| containsAll | 343 |
| removeAll | 377 |
| retainAll | 362 |
| stream | 3,169 |
| parallelStream | 355 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
Vector (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
Stack (class)
| Member | Times compared |
|---|---|
| push | 200 |
| pop | 206 |
| peek | 216 |
| empty | 193 |
| search | 221 |
| capacityIncrement | excluded: implementation field (protected in the reference) |
| get | 98 |
| set | 94 |
| removeAt | 111 |
| add | 560 |
| clone | 206 |
| ensureCapacity | 98 |
| trimToSize | 110 |
| capacity | 115 |
| indexOf | 107 |
| lastIndexOf | 109 |
| setSize | 100 |
| copyInto | 96 |
| elements | 217 |
| elementAt | 94 |
| firstElement | 107 |
| lastElement | 92 |
| addElement | 88 |
| remove | 192 |
| removeElement | 118 |
| removeElementAt | 88 |
| insertElementAt | 110 |
| setElementAt | 100 |
| removeAllElements | 102 |
| size | 188 |
| isEmpty | 100 |
| contains | 95 |
| toArray | 212 |
| clear | 88 |
| forEach | 117 |
| removeRange | excluded: protected in the reference (exercised indirectly through subList(..).clear()) |
| removeIf | 105 |
| replaceAll | 95 |
| sort | 204 |
| getFirst | 109 |
| getLast | 101 |
| iterator | 20,119 |
| listIterator | 476 |
| spliterator | 93 |
| equals | 400 |
| hashCode | 93 |
| toString | 115 |
| [RANDOM_ACCESS] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| modCount | excluded: implementation field (protected in the reference) |
| addAll | 2,613 |
| subList | 1,041 |
| addFirst | 106 |
| addLast | 102 |
| removeFirst | 100 |
| removeLast | 115 |
| reversed | 763 |
| containsAll | 112 |
| removeAll | 107 |
| retainAll | 118 |
| stream | 284 |
| parallelStream | 109 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
Stack (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
ArrayDeque (class)
| Member | Times compared |
|---|---|
| clone | 348 |
| size | 919 |
| isEmpty | 379 |
| addFirst | 540 |
| addLast | 177 |
| offerFirst | 263 |
| offerLast | 134 |
| add | 16,139 |
| offer | 771 |
| push | 163 |
| addAll | 2,944 |
| pollFirst | 221 |
| pollLast | 170 |
| removeFirst | 225 |
| removeLast | 160 |
| poll | 798 |
| pop | 160 |
| remove | 1,002 |
| removeFirstOccurrence | 185 |
| removeLastOccurrence | 172 |
| removeIf | 425 |
| clear | 378 |
| peekFirst | 242 |
| peekLast | 174 |
| peek | 784 |
| getFirst | 231 |
| getLast | 152 |
| element | 235 |
| contains | 369 |
| toArray | 1,131 |
| forEach | 374 |
| toString | 388 |
| iterator | 64,973 |
| descendingIterator | 344 |
| spliterator | 1,308 |
| reversed | 403 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| containsAll | 373 |
| removeAll | 384 |
| retainAll | 423 |
| stream | 3,119 |
| parallelStream | 380 |
| equals | 803 |
| hashCode | excluded: identity hash code in the reference (not overridden there) |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
ArrayDeque (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
PriorityQueue (class)
| Member | Times compared |
|---|---|
| comparator | 786 |
| size | 1,028 |
| offer | 924 |
| poll | 4,370 |
| peek | 885 |
| remove | 3,049 |
| contains | 1,040 |
| clear | 1,014 |
| toArray | 3,194 |
| removeIf | 1,013 |
| forEach | 1,042 |
| iterator | 64,878 |
| spliterator | 1,047 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| add | 3,062 |
| element | 926 |
| addAll | 5,835 |
| isEmpty | 1,055 |
| containsAll | 1,039 |
| removeAll | 1,059 |
| retainAll | 1,067 |
| stream | 3,156 |
| parallelStream | 1,097 |
| equals | 1,893 |
| hashCode | excluded: identity hash code in the reference (not overridden there) |
| toString | 1,091 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
PriorityQueue (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
HashMap (class)
| Member | Times compared |
|---|---|
| modCount | excluded: implementation field (protected in the reference) |
| clone | 603 |
| getNode | excluded: implementation hook (package-private in the reference) |
| removeNode | excluded: implementation hook (package-private in the reference) |
| size | 488 |
| isEmpty | 403 |
| get | 405 |
| containsKey | 388 |
| containsValue | 424 |
| put | 9,897 |
| remove | 786 |
| putAll | 8,140 |
| clear | 446 |
| keySet | 1,640 |
| values | 895 |
| entrySet | 38,660 |
| hashCode | 412 |
| getOrDefault | 411 |
| forEach | 3,589 |
| replaceAll | 712 |
| putIfAbsent | 3,282 |
| replace | 840 |
| computeIfAbsent | 4,394 |
| computeIfPresent | 367 |
| compute | 398 |
| merge | 3,783 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| equals | 998 |
| toString | 379 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
HashMap (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
| newHashMap | 311 |
LinkedHashMap (class)
| Member | Times compared |
|---|---|
| accessOrder | excluded: implementation field (private in the reference) |
| clone | 872 |
| get | 1,115 |
| containsValue | 1,163 |
| clear | 1,091 |
| forEach | 1,112 |
| keySet | 5,314 |
| values | 3,271 |
| entrySet | 124,016 |
| sequencedKeySet | 1,199 |
| sequencedValues | 1,189 |
| sequencedEntrySet | 1,247 |
| reversed | 1,280 |
| firstEntry | 923 |
| lastEntry | 1,010 |
| pollFirstEntry | 1,047 |
| pollLastEntry | 985 |
| putFirst | 1,077 |
| putLast | 1,016 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| modCount | excluded: implementation field (protected in the reference) |
| getNode | excluded: implementation hook (package-private in the reference) |
| removeNode | excluded: implementation hook (package-private in the reference) |
| size | 1,125 |
| isEmpty | 1,094 |
| containsKey | 1,040 |
| put | 63,364 |
| remove | 2,231 |
| putAll | 1,032 |
| hashCode | 1,064 |
| getOrDefault | 1,090 |
| replaceAll | 1,063 |
| putIfAbsent | 1,128 |
| replace | 2,215 |
| computeIfAbsent | 1,093 |
| computeIfPresent | 1,102 |
| compute | 1,159 |
| merge | 1,108 |
| equals | 1,994 |
| toString | 1,086 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
LinkedHashMap (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
| lru | excluded: JS-only convenience factory |
| newLinkedHashMap | 358 |
| newHashMap | 359 |
TreeMap (class)
| Member | Times compared |
|---|---|
| clone | 600 |
| size | 446 |
| isEmpty | 436 |
| get | 422 |
| containsKey | 420 |
| containsValue | 445 |
| getOrDefault | 408 |
| put | 15,866 |
| putIfAbsent | 426 |
| remove | 798 |
| clear | 446 |
| forEach | 1,683 |
| replaceAll | 741 |
| computeIfAbsent | 2,061 |
| computeIfPresent | 430 |
| compute | 447 |
| merge | 2,525 |
| entrySet | 64,445 |
| keySet | 2,058 |
| values | 1,219 |
| navigableKeySet | 442 |
| descendingKeySet | 417 |
| descendingMap | 622 |
| reversed | 517 |
| sequencedKeySet | 470 |
| sequencedValues | 457 |
| sequencedEntrySet | 487 |
| headMap | 1,342 |
| tailMap | 928 |
| subMap | 1,207 |
| comparator | 372 |
| firstKey | 375 |
| lastKey | 382 |
| firstEntry | 356 |
| lastEntry | 378 |
| pollFirstEntry | 369 |
| pollLastEntry | 407 |
| putFirst | 381 |
| putLast | 348 |
| lowerEntry | 343 |
| lowerKey | 333 |
| floorEntry | 338 |
| floorKey | 329 |
| ceilingEntry | 338 |
| ceilingKey | 328 |
| higherEntry | 329 |
| higherKey | 369 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| putAll | 378 |
| equals | 1,057 |
| hashCode | 423 |
| toString | 436 |
| replace | 890 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
IdentityHashMap (class)
| Member | Times compared |
|---|---|
| modCount | excluded: implementation field (protected in the reference) |
| clone | 690 |
| size | 294 |
| isEmpty | 342 |
| get | 334 |
| containsKey | 331 |
| containsValue | 343 |
| put | 8,115 |
| remove | 647 |
| replace | 698 |
| clear | 354 |
| keySet | 1,454 |
| values | 757 |
| entrySet | 29,830 |
| forEach | 333 |
| equals | 1,005 |
| hashCode | excluded: identity hash code in the reference (not overridden there) |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| putAll | 322 |
| toString | 331 |
| getOrDefault | 336 |
| replaceAll | 320 |
| putIfAbsent | 313 |
| computeIfAbsent | 359 |
| computeIfPresent | 318 |
| compute | 352 |
| merge | 373 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
HashSet (class)
| Member | Times compared |
|---|---|
| modCount | excluded: implementation field (protected in the reference) |
| clone | 599 |
| size | 2,808 |
| isEmpty | 532 |
| contains | 559 |
| add | 7,295 |
| remove | 1,070 |
| clear | 515 |
| iterator | 70,007 |
| spliterator | 547 |
| forEach | 562 |
| toArray | 1,023 |
| removeIf | 548 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| equals | 1,582 |
| removeAll | 517 |
| hashCode | 494 |
| [SET_BRAND] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| containsAll | 544 |
| addAll | 20,173 |
| retainAll | 517 |
| stream | 1,589 |
| parallelStream | 549 |
| toString | 513 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
HashSet (static)
| Member | Times compared |
|---|---|
| newHashSet | 363 |
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
LinkedHashSet (class)
| Member | Times compared |
|---|---|
| clone | 466 |
| size | 331 |
| isEmpty | 294 |
| contains | 355 |
| add | 16,211 |
| remove | 652 |
| clear | 311 |
| iterator | 32,133 |
| spliterator | 1,275 |
| forEach | 322 |
| toArray | 603 |
| removeIf | 304 |
| getFirst | 244 |
| getLast | 253 |
| removeFirst | 210 |
| removeLast | 243 |
| addFirst | 245 |
| addLast | 218 |
| reversed | 597 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| modCount | excluded: implementation field (protected in the reference) |
| equals | 1,120 |
| removeAll | 329 |
| hashCode | 283 |
| [SET_BRAND] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| containsAll | 336 |
| addAll | 2,644 |
| retainAll | 301 |
| stream | 3,047 |
| parallelStream | 316 |
| toString | 299 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
LinkedHashSet (static)
| Member | Times compared |
|---|---|
| newLinkedHashSet | 376 |
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
| newHashSet | 367 |
TreeSet (class)
| Member | Times compared |
|---|---|
| clone | 639 |
| iterator | 90,352 |
| spliterator | 1,667 |
| descendingIterator | 1,117 |
| size | 713 |
| isEmpty | 653 |
| contains | 630 |
| add | 17,822 |
| remove | 1,301 |
| clear | 656 |
| comparator | 627 |
| first | 660 |
| last | 672 |
| getFirst | 653 |
| getLast | 689 |
| removeFirst | 699 |
| removeLast | 676 |
| addFirst | 627 |
| addLast | 652 |
| lower | 585 |
| floor | 593 |
| ceiling | 556 |
| higher | 550 |
| pollFirst | 551 |
| pollLast | 576 |
| descendingSet | 1,525 |
| reversed | 892 |
| headSet | 2,291 |
| tailSet | 1,662 |
| subSet | 2,198 |
| [iterator] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| equals | 1,943 |
| removeAll | 645 |
| hashCode | 615 |
| [SET_BRAND] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
| toArray | 1,288 |
| containsAll | 660 |
| addAll | 8,162 |
| retainAll | 646 |
| removeIf | 642 |
| forEach | 611 |
| stream | 3,896 |
| parallelStream | 669 |
| toString | 724 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
TreeSet (static)
| Member | Times compared |
|---|---|
| of | excluded: JS-only convenience factory (the reference has no Class.of on these classes) |
Collections (object)
| Member | Times compared |
|---|---|
| sort | 3,372 |
| reverse | 3,514 |
| shuffle | 3,456 |
| swap | 3,324 |
| fill | 3,253 |
| copy | 3,376 |
| min | 30,313 |
| max | 30,351 |
| frequency | 15,105 |
| disjoint | 15,217 |
| binarySearch | 4,487 |
| rotate | 3,403 |
| nCopies | 5,887 |
| addAll | 15,377 |
| indexOfSubList | 3,471 |
| lastIndexOfSubList | 3,356 |
| replaceAll | 3,459 |
| reverseOrder | 9,653 |
| emptyList | 4,444 |
| emptySet | 2,303 |
| emptyMap | 2,325 |
| emptySortedSet | 2,344 |
| emptyNavigableSet | 2,365 |
| emptySortedMap | 2,354 |
| emptyNavigableMap | 2,336 |
| emptyIterator | 2,093 |
| emptyListIterator | 2,129 |
| emptyEnumeration | 2,068 |
| singletonList | 2,376 |
| singleton | 2,374 |
| singletonMap | 2,300 |
| unmodifiableCollection | 518 |
| unmodifiableSequencedCollection | 343 |
| unmodifiableList | 2,690 |
| unmodifiableSet | 930 |
| unmodifiableSequencedSet | 535 |
| unmodifiableSortedSet | 261 |
| unmodifiableNavigableSet | 208 |
| unmodifiableMap | 497 |
| unmodifiableSequencedMap | 265 |
| unmodifiableSortedMap | 88 |
| unmodifiableNavigableMap | 68 |
| newSetFromMap | 490 |
| newSequencedSetFromMap | 194 |
| asLifoQueue | 494 |
| enumeration | 32,125 |
| list | 15,418 |
| checkedCollection | 123 |
| checkedList | 132 |
| checkedSet | 718 |
| checkedSortedSet | 219 |
| checkedNavigableSet | 225 |
| checkedQueue | 898 |
| checkedMap | 463 |
| checkedSortedMap | 81 |
| checkedNavigableMap | 74 |
| synchronizedCollection | 752 |
| synchronizedList | 593 |
| synchronizedSet | 414 |
| synchronizedSortedSet | 222 |
| synchronizedNavigableSet | 207 |
| synchronizedMap | 462 |
| synchronizedSortedMap | 94 |
| synchronizedNavigableMap | 80 |
| EMPTY_LIST | 4,464 |
| EMPTY_SET | 4,401 |
| EMPTY_MAP | 4,391 |
Stream (object)
| Member | Times compared |
|---|---|
| of | 32,387 |
| ofNullable | 6,329 |
| empty | 6,432 |
| iterate | 12,645 |
| generate | 6,293 |
| concat | 6,532 |
| builder | 12,707 |
| from | excluded: JS-only source (array / iterable) with no reference counterpart |
| ofArray | excluded: JS-only source (array / iterable) with no reference counterpart |
Stream (interface)
| Member | Times compared |
|---|---|
| filter | 24,721 |
| map | 23,732 |
| mapToInt | 6,795 |
| mapToLong | 3,605 |
| mapToDouble | 4,834 |
| flatMap | 5,729 |
| flatMapToInt | 5,652 |
| flatMapToLong | 5,712 |
| flatMapToDouble | 6,926 |
| mapMulti | 6,839 |
| mapMultiToInt | 5,705 |
| mapMultiToLong | 5,711 |
| mapMultiToDouble | 6,983 |
| distinct | 6,718 |
| sorted | 29,163 |
| peek | 9,171 |
| limit | 21,944 |
| skip | 9,432 |
| takeWhile | 6,777 |
| dropWhile | 6,728 |
| gather | 27,490 |
| forEach | 4,002 |
| forEachOrdered | 3,521 |
| toArray | 8,992 |
| reduce | 8,906 |
| collect | 14,269 |
| toList | 58,537 |
| min | 3,144 |
| max | 3,214 |
| count | 19,488 |
| anyMatch | 4,386 |
| allMatch | 3,590 |
| noneMatch | 3,767 |
| findFirst | 6,098 |
| findAny | 3,478 |
| iterator | 6,921 |
| spliterator | 3,458 |
| isParallel | 19,255 |
| sequential | 4,706 |
| parallel | 3,914 |
| unordered | 2,140 |
| onClose | 8,509 |
| close | 4,028 |
| [dispose] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
IntStream (object)
| Member | Times compared |
|---|---|
| range | 6,669 |
| rangeClosed | 6,356 |
| of | 31,802 |
| ofArray | excluded: JS-only source (array / iterable) with no reference counterpart |
| empty | 6,326 |
| iterate | 12,697 |
| generate | 6,279 |
| concat | 6,379 |
| builder | 6,409 |
IntStream (interface)
| Member | Times compared |
|---|---|
| iterator | 2,102 |
| mapToLong | 7,393 |
| mapToDouble | 7,591 |
| asLongStream | 7,449 |
| asDoubleStream | 7,662 |
| summaryStatistics | 4,408 |
| filter | 7,536 |
| map | 7,566 |
| mapToObj | 7,641 |
| flatMap | 7,508 |
| mapMulti | 7,572 |
| distinct | 7,466 |
| sorted | 7,574 |
| peek | 7,701 |
| limit | 20,219 |
| skip | 7,497 |
| takeWhile | 7,473 |
| dropWhile | 7,607 |
| forEach | 2,109 |
| forEachOrdered | 2,128 |
| toArray | 3,455 |
| reduce | 4,488 |
| collect | 2,307 |
| sum | 2,870 |
| min | 2,895 |
| max | 2,909 |
| count | 2,895 |
| average | 4,320 |
| anyMatch | 2,991 |
| allMatch | 2,166 |
| noneMatch | 2,107 |
| findFirst | 4,562 |
| findAny | 2,092 |
| boxed | 10,169 |
| spliterator | 8,666 |
| isParallel | 2,399 |
| sequential | 3,304 |
| parallel | 3,044 |
| unordered | 2,800 |
| onClose | 5,268 |
| close | 2,154 |
| [dispose] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
LongStream (object)
| Member | Times compared |
|---|---|
| range | 6,296 |
| rangeClosed | 6,393 |
| of | 25,685 |
| ofArray | excluded: JS-only source (array / iterable) with no reference counterpart |
| empty | 6,190 |
| iterate | 12,902 |
| generate | 6,384 |
| concat | 6,411 |
| builder | 6,279 |
LongStream (interface)
| Member | Times compared |
|---|---|
| iterator | 2,230 |
| mapToInt | 8,098 |
| mapToDouble | 7,969 |
| asDoubleStream | 7,819 |
| summaryStatistics | 4,770 |
| filter | 7,942 |
| map | 8,085 |
| mapToObj | 7,868 |
| flatMap | 7,998 |
| mapMulti | 7,957 |
| distinct | 7,958 |
| sorted | 7,937 |
| peek | 8,094 |
| limit | 20,727 |
| skip | 7,991 |
| takeWhile | 7,993 |
| dropWhile | 7,947 |
| forEach | 2,219 |
| forEachOrdered | 2,248 |
| toArray | 3,654 |
| reduce | 4,782 |
| collect | 2,462 |
| sum | 3,066 |
| min | 3,093 |
| max | 3,038 |
| count | 3,005 |
| average | 4,495 |
| anyMatch | 3,007 |
| allMatch | 2,167 |
| noneMatch | 2,240 |
| findFirst | 4,771 |
| findAny | 2,243 |
| boxed | 10,315 |
| spliterator | 8,577 |
| isParallel | 2,584 |
| sequential | 3,286 |
| parallel | 2,887 |
| unordered | 2,920 |
| onClose | 5,701 |
| close | 2,239 |
| [dispose] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
DoubleStream (object)
| Member | Times compared |
|---|---|
| of | 32,070 |
| ofArray | excluded: JS-only source (array / iterable) with no reference counterpart |
| empty | 6,382 |
| iterate | 12,683 |
| generate | 6,422 |
| concat | 6,457 |
| builder | 6,393 |
DoubleStream (interface)
| Member | Times compared |
|---|---|
| iterator | 2,623 |
| mapToInt | 8,760 |
| mapToLong | 8,698 |
| summaryStatistics | 5,222 |
| filter | 8,741 |
| map | 8,779 |
| mapToObj | 8,845 |
| flatMap | 8,845 |
| mapMulti | 8,860 |
| distinct | 8,792 |
| sorted | 8,820 |
| peek | 8,799 |
| limit | 21,462 |
| skip | 8,725 |
| takeWhile | 8,818 |
| dropWhile | 8,769 |
| forEach | 2,590 |
| forEachOrdered | 2,716 |
| toArray | 4,103 |
| reduce | 5,044 |
| collect | 2,602 |
| sum | 2,537 |
| min | 3,784 |
| max | 3,793 |
| count | 3,880 |
| average | 5,230 |
| anyMatch | 3,852 |
| allMatch | 2,554 |
| noneMatch | 2,667 |
| findFirst | 5,550 |
| findAny | 2,542 |
| boxed | 11,849 |
| spliterator | 8,899 |
| isParallel | 2,937 |
| sequential | 3,288 |
| parallel | 2,566 |
| unordered | 3,423 |
| onClose | 6,570 |
| close | 2,578 |
| [dispose] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
BaseStream (interface)
| Member | Times compared |
|---|---|
| iterator | 13,876 |
| spliterator | 29,600 |
| isParallel | 27,175 |
| sequential | 14,584 |
| parallel | 12,411 |
| unordered | 11,283 |
| onClose | 26,048 |
| close | 10,999 |
| [dispose] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
StreamBuilder (interface)
| Member | Times compared |
|---|---|
| accept | 38,247 |
| add | 60,634 |
| build | 31,788 |
NumberStreamBuilder (interface)
| Member | Times compared |
|---|---|
| accept | 38,247 |
| add | 60,634 |
| build | 31,788 |
PrimitiveIteratorOfInt (interface)
| Member | Times compared |
|---|---|
| nextInt | 1,322 |
| hasNext | 2,122 |
| next | 2,114 |
| remove | 2,122 |
| forEachRemaining | 2,186 |
PrimitiveIteratorOfLong (interface)
| Member | Times compared |
|---|---|
| nextLong | 1,456 |
| hasNext | 2,122 |
| next | 2,114 |
| remove | 2,122 |
| forEachRemaining | 2,186 |
PrimitiveIteratorOfDouble (interface)
| Member | Times compared |
|---|---|
| nextDouble | 1,577 |
| hasNext | 2,122 |
| next | 2,114 |
| remove | 2,122 |
| forEachRemaining | 2,186 |
StreamSupport (object)
| Member | Times compared |
|---|---|
| stream | 12,475 |
| intStream | 6,463 |
| longStream | 6,352 |
| doubleStream | 6,348 |
Collectors (object)
| Member | Times compared |
|---|---|
| toCollection | 1,517 |
| toList | 1,109 |
| toUnmodifiableList | 758 |
| toSet | 1,502 |
| toUnmodifiableSet | 770 |
| joining | 321 |
| mapping | 928 |
| filtering | 641 |
| flatMapping | 478 |
| collectingAndThen | 635 |
| counting | 1,431 |
| minBy | 774 |
| maxBy | 737 |
| summingInt | 647 |
| summingLong | 542 |
| summingDouble | 703 |
| averagingInt | 581 |
| averagingLong | 644 |
| averagingDouble | 657 |
| reducing | 1,987 |
| groupingBy | 2,083 |
| groupingByConcurrent | 1,821 |
| partitioningBy | 1,387 |
| toMap | 1,771 |
| toUnmodifiableMap | 1,186 |
| toConcurrentMap | 1,625 |
| summarizingInt | 610 |
| summarizingLong | 639 |
| summarizingDouble | 695 |
| teeing | 568 |
Collector (object)
| Member | Times compared |
|---|---|
| of | 4,405 |
| Characteristics | 2,013 |
Collector (interface)
| Member | Times compared |
|---|---|
| supplier | 16,711 |
| accumulator | 16,711 |
| combiner | 16,711 |
| finisher | 16,711 |
| characteristics | 15,745 |
Gatherers (object)
| Member | Times compared |
|---|---|
| fold | 5,173 |
| scan | 7,111 |
| windowFixed | 9,563 |
| windowSliding | 7,323 |
| mapConcurrent | 618 |
Gatherer (object)
| Member | Times compared |
|---|---|
| defaultInitializer | 1,116 |
| defaultCombiner | 8,557 |
| defaultFinisher | 1,116 |
| of | 2,335 |
| ofSequential | 8,039 |
Gatherer (interface)
| Member | Times compared |
|---|---|
| initializer | 7,441 |
| integrator | 7,441 |
| combiner | 7,441 |
| finisher | 7,441 |
| andThen | 2,066 |
Integrator (object)
| Member | Times compared |
|---|---|
| of | 2,218 |
| ofGreedy | 8,156 |
Integrator (interface)
| Member | Times compared |
|---|---|
| greedy | excluded: marker flag (the reference uses the Integrator.Greedy subtype) |
Downstream (interface)
| Member | Times compared |
|---|---|
| push | 14,674 |
| isRejecting | 2,199 |
DefinedGatherer (interface)
| Member | Times compared |
|---|---|
| initializer | 7,441 |
| combiner | 7,441 |
| finisher | 7,441 |
| andThen | 2,066 |
| integrator | 7,441 |
Optional (class)
| Member | Times compared |
|---|---|
| get | 20,075 |
| filter | 1,650 |
| map | 1,618 |
| flatMap | 1,016 |
| or | 1,600 |
| stream | 1,550 |
| equals | 1,608 |
| hashCode | 1,524 |
| toString | 3,855 |
| isPresent | 28,214 |
| isEmpty | 1,565 |
| ifPresent | 1,596 |
| ifPresentOrElse | 1,586 |
| orElse | 1,643 |
| orElseGet | 1,548 |
| orElseThrow | 3,286 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
Optional (static)
| Member | Times compared |
|---|---|
| empty | 3,015 |
| of | 4,860 |
| ofNullable | 4,859 |
OptionalInt (class)
| Member | Times compared |
|---|---|
| getAsInt | 1,058 |
| stream | 1,022 |
| equals | 979 |
| hashCode | 1,009 |
| toString | 3,279 |
| isPresent | 17,647 |
| isEmpty | 1,021 |
| ifPresent | 1,057 |
| ifPresentOrElse | 1,045 |
| orElse | 1,070 |
| orElseGet | 1,091 |
| orElseThrow | 13,429 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
OptionalInt (static)
| Member | Times compared |
|---|---|
| empty | 1,524 |
| of | 4,288 |
OptionalLong (class)
| Member | Times compared |
|---|---|
| getAsLong | 1,162 |
| stream | 1,092 |
| equals | 1,086 |
| hashCode | 1,062 |
| toString | 3,259 |
| isPresent | 18,678 |
| isEmpty | 1,067 |
| ifPresent | 1,029 |
| ifPresentOrElse | 1,078 |
| orElse | 1,058 |
| orElseGet | 1,137 |
| orElseThrow | 13,860 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
OptionalLong (static)
| Member | Times compared |
|---|---|
| empty | 1,634 |
| of | 4,400 |
OptionalDouble (class)
| Member | Times compared |
|---|---|
| getAsDouble | 1,102 |
| stream | 1,085 |
| equals | 1,055 |
| hashCode | 1,011 |
| toString | 10,512 |
| isPresent | 27,579 |
| isEmpty | 1,004 |
| ifPresent | 1,068 |
| ifPresentOrElse | 1,033 |
| orElse | 1,052 |
| orElseGet | 982 |
| orElseThrow | 18,813 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
OptionalDouble (static)
| Member | Times compared |
|---|---|
| empty | 1,586 |
| of | 4,328 |
Spliterator (object)
| Member | Times compared |
|---|---|
| DISTINCT | 2,088 |
| SORTED | 2,088 |
| ORDERED | 2,088 |
| SIZED | 2,088 |
| NONNULL | 2,088 |
| IMMUTABLE | 2,088 |
| CONCURRENT | 2,088 |
| SUBSIZED | 2,088 |
Spliterator (interface)
| Member | Times compared |
|---|---|
| tryAdvance | 19,014 |
| forEachRemaining | 26,777 |
| trySplit | 11,482 |
| estimateSize | 7,194 |
| getExactSizeIfKnown | 7,258 |
| characteristics | 11,250 |
| hasCharacteristics | 11,444 |
| getComparator | 7,676 |
Spliterators (static)
| Member | Times compared |
|---|---|
| AbstractSpliterator | 1,922 |
| AbstractIntSpliterator | 1,920 |
| AbstractLongSpliterator | 1,966 |
| AbstractDoubleSpliterator | 1,908 |
| emptySpliterator | 1,954 |
| emptyIntSpliterator | 1,927 |
| emptyLongSpliterator | 1,926 |
| emptyDoubleSpliterator | 1,957 |
| spliterator | 7,761 |
| spliteratorUnknownSize | 1,968 |
| iterator | 7,978 |
IntSummaryStatistics (class)
| Member | Times compared |
|---|---|
| accept | 8,543 |
| combine | 2,480 |
| getCount | 5,054 |
| getSum | 5,061 |
| getMin | 5,045 |
| getMax | 5,020 |
| getAverage | 5,048 |
| toString | 4,218 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
LongSummaryStatistics (class)
| Member | Times compared |
|---|---|
| accept | 8,748 |
| combine | 2,509 |
| getCount | 5,252 |
| getSum | 5,242 |
| getMin | 5,211 |
| getMax | 5,272 |
| getAverage | 5,291 |
| toString | 4,446 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
DoubleSummaryStatistics (class)
| Member | Times compared |
|---|---|
| accept | 9,520 |
| combine | 2,846 |
| getCount | 5,468 |
| getSum | 5,507 |
| getMin | 5,561 |
| getMax | 5,496 |
| getAverage | 5,729 |
| toString | 4,846 |
| [INSPECT] | excluded: JS protocol / brand symbol (INSPECT: the util.inspect hook behind console.log); no reference counterpart |
RuntimeException (class)
| Member | Times compared |
|---|---|
| name | excluded: base class; the library never throws it directly (its subclasses are compared) |
IndexOutOfBoundsException (class)
| Member | Times compared |
|---|---|
| name | 30,363 |
ArrayIndexOutOfBoundsException (class)
| Member | Times compared |
|---|---|
| name | 4,190 |
NoSuchElementException (class)
| Member | Times compared |
|---|---|
| name | 83,364 |
EmptyStackException (class)
| Member | Times compared |
|---|---|
| name | 81 |
NullPointerException (class)
| Member | Times compared |
|---|---|
| name | 24,729 |
IllegalArgumentException (class)
| Member | Times compared |
|---|---|
| name | 20,696 |
IllegalStateException (class)
| Member | Times compared |
|---|---|
| name | 15,939 |
UnsupportedOperationException (class)
| Member | Times compared |
|---|---|
| name | 191,051 |
ConcurrentModificationException (class)
| Member | Times compared |
|---|---|
| name | 2,402 |
ClassCastException (class)
| Member | Times compared |
|---|---|
| name | 1,965 |
Library-internal implementations reached
Section titled “Library-internal implementations reached”Views, iterators, wrappers and stream internals the harness received, with the public interfaces they implement and how many distinct members were called on them.
| Implementation | Interfaces | Members called |
|---|---|---|
| (anonymous) | Collection, Set | 2 |
| ArrayItr | Iterator, ListIterator | 10 |
| ArrayListItr | Iterator, ListIterator | 10 |
| ArraySpliterator | Spliterator | 8 |
| AscendingIterator | Iterator | 4 |
| Builder | StreamBuilder, NumberStreamBuilder | 3 |
| CollectorImpl | Collector | 5 |
| CompensatedSum | - | 0 |
| Composite | Gatherer, DefinedGatherer | 4 |
| ConcatSpliterator | Spliterator | 7 |
| CopiesList | Collection, SequencedCollection, List | 36 |
| DelegatingSpliterator | Spliterator | 7 |
| DeqSpliterator | Spliterator | 8 |
| DescendingIterator | Iterator | 4 |
| DescendingItr | Iterator | 4 |
| DoublePipeline | DoubleStream, BaseStream | 39 |
| EmptyList | Collection, SequencedCollection, List | 36 |
| EmptyMap | Map | 24 |
| EmptySet | Collection, Set | 21 |
| EmptySpliterator | Spliterator | 8 |
| EngineArraySpliterator | Spliterator | 7 |
| EntryIterator | Iterator | 3 |
| EntrySet | Collection, Set | 21 |
| EntrySetView | Collection, SequencedCollection, SequencedSet, Set | 27 |
| GatherSink | Downstream | 2 |
| GathererImpl | Gatherer, DefinedGatherer | 5 |
| HashNode | MapEntry | 2 |
| HashSetIterator | Iterator | 3 |
| IdentityIterator | Iterator | 3 |
| IdentityNode | MapEntry | 2 |
| ImmutableList | Collection, SequencedCollection, List | 36 |
| ImmutableMap | Map | 24 |
| ImmutableSet | Collection, Set | 21 |
| IntPipeline | IntStream, BaseStream | 41 |
| Iterate3Spliterator | Spliterator | 7 |
| IteratorSpliterator | Spliterator | 8 |
| Itr | Iterator | 4 |
| KeyIterator | Iterator | 3 |
| KeySet | Collection, Set | 20 |
| KeySetView | Collection, Set | 20 |
| KeyValueHolder | MapEntry | 6 |
| LLSpliterator | Spliterator | 8 |
| LinkedEntrySet | Collection, SequencedCollection, SequencedSet, Set | 28 |
| LinkedIterator | Iterator | 4 |
| LinkedJsIterator | - | 0 |
| LinkedKeySet | Collection, SequencedCollection, SequencedSet, Set | 27 |
| LinkedNode | MapEntry | 3 |
| LinkedValues | Collection, SequencedCollection | 26 |
| ListItr | Iterator, ListIterator | 10 |
| LongPipeline | LongStream, BaseStream | 40 |
| NavigableKeySet | Collection, SequencedCollection, SequencedSet, SortedSet, NavigableSet, Set | 41 |
| NumberIterator | Iterator, PrimitiveIteratorOfInt, PrimitiveIteratorOfLong, PrimitiveIteratorOfDouble | 7 |
| Object | Enumeration | 13 |
| OwnedArraySpliterator | Spliterator | 8 |
| Partition | Map | 2 |
| RandomAccessSpliterator | Spliterator | 8 |
| RangeSpliterator | Spliterator | 7 |
| ReadOnlyItr | Iterator, ListIterator | 10 |
| RefPipeline | Stream, BaseStream | 43 |
| ReverseOrderLinkedListView | Collection, SequencedCollection, Queue, Deque, List | 51 |
| ReverseOrderListView | Collection, SequencedCollection, List | 36 |
| ReversedDeque | Collection, SequencedCollection, Queue, Deque | 41 |
| ReversedLinkedHashMap | SequencedMap, Map | 34 |
| ReversedLinkedHashSet | Collection, SequencedCollection, SequencedSet, Set | 27 |
| SequencedEntryView | Collection, SequencedCollection, SequencedSet, Set | 1 |
| SequencedKeyView | Collection, SequencedCollection, SequencedSet, Set | 1 |
| SequencedValuesView | Collection, SequencedCollection | 1 |
| SingletonList | Collection, SequencedCollection, List | 36 |
| SingletonMap | Map | 24 |
| SingletonSet | Collection, Set | 21 |
| SingletonSpliterator | Spliterator | 8 |
| SpliteratorIterator | Iterator | 4 |
| SubList | Collection, SequencedCollection, List | 36 |
| SubMap | SequencedMap, SortedMap, NavigableMap, Map | 52 |
| TreeIter | Iterator | 4 |
| TreeNode | MapEntry | 3 |
| UnmodifiableCollection | Collection | 19 |
| UnmodifiableEntry | MapEntry | 3 |
| UnmodifiableEntrySet | Collection, SequencedCollection, SequencedSet, Set | 4 |
| UnmodifiableList | Collection, SequencedCollection, List | 36 |
| UnmodifiableMap | Map | 24 |
| UnmodifiableNavigableMap | SequencedMap, SortedMap, NavigableMap, Map | 51 |
| UnmodifiableNavigableSet | Collection, SequencedCollection, SequencedSet, SortedSet, NavigableSet, Set | 41 |
| UnmodifiableSequencedCollection | Collection, SequencedCollection | 26 |
| UnmodifiableSequencedMap | SequencedMap, Map | 34 |
| UnmodifiableSequencedSet | Collection, SequencedCollection, SequencedSet, Set | 27 |
| UnmodifiableSet | Collection, Set | 20 |
| UnmodifiableSortedMap | SequencedMap, SortedMap, NavigableMap, Map | 40 |
| ValueIterator | Iterator | 3 |
| Values | Collection | 18 |
| ValuesView | Collection, SequencedCollection | 25 |
| WrappingSpliterator | Spliterator | 7 |