Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting a comment in EntryStream.java #273

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/one/util/streamex/EntryStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ public static <K, V> EntryStream<K, V> zip(K[] keys, V[] values) {
* {@code Map.Entry(list.get(0), list.get(1))},
* {@code Map.Entry(list.get(0), list.get(2))} and
* {@code Map.Entry(list.get(1), list.get(2))}. The number of elements in
* the resulting stream is {@code list.size()*(list.size()+1L)/2}.
* the resulting stream is {@code list.size() * (list.size() - 1L) / 2}.
*
* <p>
* The list values are accessed using {@link List#get(int)}, so the list
Expand Down Expand Up @@ -2185,7 +2185,7 @@ public static <T> EntryStream<T, T> ofPairs(List<T> list) {
* {@code Map.Entry(array[0], array[1])},
* {@code Map.Entry(array[0], array[2])} and
* {@code Map.Entry(array[1], array[2])}. The number of elements in the
* resulting stream is {@code array.length*(array.length+1L)/2}..
* resulting stream is {@code array.length * (array.length - 1L) / 2}..
*
* @param <T> type of the array elements
* @param array a array to take the elements from
Expand Down