Skip to content

Commit 84d5472

Browse files
committed
Update README.md.
1 parent d908ec4 commit 84d5472

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ public static <T> Stream<T> streamOf(Collection<T> collection) { ... }
11241124
public static <T> Function<Object, T> toType(Class<T> type) { ... }
11251125
```
11261126

1127-
The first provides a less verbose alternative to the `java.util.stream.StreamSupport.stream()` method:
1127+
The first provides a less verbose alternative to the `java.util.stream.StreamSupport#stream()` method:
11281128

11291129
```java
11301130
var iterable = (Iterable<Integer>)listOf(1, 2, 3);
@@ -1133,7 +1133,7 @@ var a = StreamSupport.stream(iterable.spliterator(), false).findFirst().orElseTh
11331133
var b = streamOf(iterable).findFirst().orElseThrow(); // 1
11341134
```
11351135

1136-
The second is provided for consistency.
1136+
The second is provided for consistency and simply delegates to `java.util.Collection#stream()`.
11371137

11381138
The last method returns a function that coerces a value to a given type:
11391139

0 commit comments

Comments
 (0)