use java Predicate in Java API

This commit is contained in:
Renato Cavalcanti 2021-01-07 21:06:31 +01:00
parent e8e62e2ca2
commit 4132507486
No known key found for this signature in database
GPG key ID: 75C015C04523E07C
2 changed files with 6 additions and 4 deletions

View file

@ -4,7 +4,6 @@
package akka.actor.typed.internal package akka.actor.typed.internal
import java.util.function.{ Function => JFunction }
import scala.annotation.tailrec import scala.annotation.tailrec
import scala.util.control.NonFatal import scala.util.control.NonFatal
import akka.actor.DeadLetter import akka.actor.DeadLetter
@ -15,10 +14,13 @@ import akka.actor.typed.javadsl
import akka.actor.typed.scaladsl import akka.actor.typed.scaladsl
import akka.actor.typed.scaladsl.ActorContext import akka.actor.typed.scaladsl.ActorContext
import akka.annotation.{ InternalApi, InternalStableApi } import akka.annotation.{ InternalApi, InternalStableApi }
import akka.japi.function.{ Predicate, Procedure } import akka.japi.function.Procedure
import akka.util.{ unused, ConstantFun } import akka.util.{ unused, ConstantFun }
import akka.util.OptionVal import akka.util.OptionVal
import java.util.function.{ Function => JFunction }
import java.util.function.Predicate
/** /**
* INTERNAL API * INTERNAL API
*/ */

View file

@ -6,9 +6,9 @@ package akka.actor.typed.javadsl
import akka.actor.typed.{ scaladsl, Behavior } import akka.actor.typed.{ scaladsl, Behavior }
import akka.annotation.DoNotInherit import akka.annotation.DoNotInherit
import akka.japi.function.{ Predicate, Procedure } import akka.japi.function.Procedure
import java.util.function.{ Function => JFunction } import java.util.function.{ Predicate, Function => JFunction }
/** /**
* A non thread safe mutable message buffer that can be used to buffer messages inside actors * A non thread safe mutable message buffer that can be used to buffer messages inside actors