RelationshipApi

scroll.internal.support.RelationshipsApi.RelationshipApi
abstract class RelationshipApi[L <: AnyRef, R <: AnyRef]

Representation of a relationship between two (role) types.

Type parameters

L

type of the role of the left side of the relationship

R

type of the role of the right side of the relationship

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Relationship[L, R]

Members list

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 parameters

matcher

a matching function to select the appropriate instances

Attributes

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 parameters

matcher

a matching function to select the appropriate instances

Attributes

Returns

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