@@ -78,25 +78,25 @@ default void addPathBytes(DirectBuffer buffer, int pos, int count)
7878 }
7979
8080 /// Call the given consumer on all content values in the trie in order.
81- default void forEachValue (ValueConsumer <T > consumer )
81+ default void forEachValue (ValueConsumer <? super T > consumer )
8282 {
8383 process (Direction .FORWARD , consumer );
8484 }
8585
8686 /// Call the given consumer on all content values in the trie in order.
87- default void forEachValue (Direction direction , ValueConsumer <T > consumer )
87+ default void forEachValue (Direction direction , ValueConsumer <? super T > consumer )
8888 {
8989 process (direction , consumer );
9090 }
9191
9292 /// Call the given consumer on all (path, content) pairs with non-null content in the trie in order.
93- default void forEachEntry (BiConsumer <ByteComparable , T > consumer )
93+ default void forEachEntry (BiConsumer <ByteComparable , ? super T > consumer )
9494 {
9595 forEachEntry (Direction .FORWARD , consumer );
9696 }
9797
9898 /// Call the given consumer on all (path, content) pairs with non-null content in the trie in order.
99- default void forEachEntry (Direction direction , BiConsumer <ByteComparable , T > consumer )
99+ default void forEachEntry (Direction direction , BiConsumer <ByteComparable , ? super T > consumer )
100100 {
101101 Cursor <T > cursor = cursor (direction );
102102 cursor .process (new TrieEntriesWalker .WithConsumer <>(consumer , cursor .byteComparableVersion ()));
@@ -111,14 +111,14 @@ default <R> R process(Direction direction, Cursor.Walker<? super T, R> walker)
111111 }
112112
113113 /// Process the trie using the given [ValueConsumer], skipping all branches below the top content-bearing node.
114- default void forEachValueSkippingBranches (Direction direction , ValueConsumer <T > consumer )
114+ default void forEachValueSkippingBranches (Direction direction , ValueConsumer <? super T > consumer )
115115 {
116116 processSkippingBranches (direction , consumer );
117117 }
118118
119119 /// Call the given consumer on all `(path, content)` pairs with non-null content in the trie in order, skipping all
120120 /// branches below the top content-bearing node.
121- default void forEachEntrySkippingBranches (Direction direction , BiConsumer <ByteComparable , T > consumer )
121+ default void forEachEntrySkippingBranches (Direction direction , BiConsumer <ByteComparable , ? super T > consumer )
122122 {
123123 Cursor <T > cursor = cursor (direction );
124124 cursor .processSkippingBranches (new TrieEntriesWalker .WithConsumer <>(consumer , cursor .byteComparableVersion ()));
@@ -127,7 +127,7 @@ default void forEachEntrySkippingBranches(Direction direction, BiConsumer<ByteCo
127127 }
128128
129129 /// Process the trie using the given [Cursor.Walker], skipping all branches below the top content-bearing node.
130- default <R > R processSkippingBranches (Direction direction , Cursor .Walker <T , R > walker )
130+ default <R > R processSkippingBranches (Direction direction , Cursor .Walker <? super T , R > walker )
131131 {
132132 return cursor (direction ).processSkippingBranches (walker );
133133 }
0 commit comments