RelationshipApi

abstract
class RelationshipApi[L <: AnyRef, R <: AnyRef]

Representation of a relationship between two (role) types.

Type Params
L

type of the role of the left side of the relationship

R

type of the role of the right side of the relationship

class Object
trait Matchable
class Any
class Relationship[L, R]

Value members

Abstract methods

def left(matcher: L => Boolean): Seq[L]

Get all instances of the left side of the relationship w.r.t. the provided matching function and checking the multiplicity.

Get all instances of the left side of the relationship w.r.t. the provided matching function and checking the multiplicity.

Value Params
matcher

a matching function to select the appropriate instances

Returns

all instances of the left side of the relationship w.r.t. the provided matching function.

def right(matcher: R => Boolean): Seq[R]

Get all instances of the right side of the relationship w.r.t. the provided matching function and checking the multiplicity.

Get all instances of the right side of the relationship w.r.t. the provided matching function and checking the multiplicity.

Value Params
matcher

a matching function to select the appropriate instances

Returns

all instances of the right side of the relationship w.r.t. the provided matching function.