Skip to content
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
12 changes: 12 additions & 0 deletions akka-actor/src/main/scala/akka/japi/JavaAPI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ trait Effect {
def apply(): Unit
}

/**
* Java API: Defines a criteria and determines whether the parameter meets this criteria.
*/
trait Predicate[T] {
def test(param: T): Boolean
}

/**
* Java API: Represents a tuple of two elements.
*/
case class Pair[A, B](first: A, second: B)

/**
* A constructor/factory, takes no parameters but creates a new value of type T every call.
*/
Expand Down