CompletedRequestMap

zio.query.CompletedRequestMap
See theCompletedRequestMap companion object

A CompletedRequestMap is a universally quantified mapping from requests of type Request[E, A] to results of type Either[E, A] for all types E and A. The guarantee is that for any request of type Request[E, A], if there is a corresponding value in the map, that value is of type Either[E, A]. This is used by the library to support data sources that return different result types for different requests while guaranteeing that results will be of the type requested.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def contains(request: Any): Boolean

Returns whether a result exists for the specified request.

Returns whether a result exists for the specified request.

Attributes

def insert[E, A](request: Request[E, A])(result: Either[E, A]): CompletedRequestMap

Appends the specified result to the completed requests map.

Appends the specified result to the completed requests map.

Attributes

def insertOption[E, A](request: Request[E, A])(result: Either[E, Option[A]]): CompletedRequestMap

Appends the specified optional result to the completed request map.

Appends the specified optional result to the completed request map.

Attributes

def lookup[E, A](request: Request[E, A]): Option[Either[E, A]]

Retrieves the result of the specified request if it exists.

Retrieves the result of the specified request if it exists.

Attributes

def requests: Set[Request[Any, Any]]

Collects all requests in a set.

Collects all requests in a set.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any