feat: Add create method to PFBuilder. (#947)

This commit is contained in:
He-Pin(kerr) 2024-01-15 17:37:14 +08:00 committed by GitHub
parent cf70478201
commit df302b8ee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 18 deletions

View file

@ -395,7 +395,7 @@ class SourceOrFlow {
Flow<Message, Pong, NotUsed> flow =
Flow.of(Message.class)
.collect(
new PFBuilder<Message, Pong>()
PFBuilder.<Message, Pong>create()
.match(Ping.class, p -> p.id != 0, p -> new Pong(p.id))
.build());
// #collect