Packages

o

o1.blood

BloodTest

object BloodTest extends App

This app goes through all the possible combinations of donors and recipients in the ABO+Rh system and produces a printout detailing which combinators are safe. To determine whether a combination is safe, the app uses class BloodType.

The output is expected to match the one provided by Wikipedia:

Note to students: You don't need to understand how this app works just yet. You can run it to test your BloodType class, though.

Linear Supertypes
App, DelayedInit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BloodTest
  2. App
  3. DelayedInit
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val allTypes: Seq[BloodType]
  2. final val executionStart: Long
    Definition Classes
    App
  3. final def main(args: Array[String]): Unit
    Definition Classes
    App

Deprecated Value Members

  1. def delayedInit(body: => Unit): Unit
    Definition Classes
    App → DelayedInit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) the delayedInit mechanism will disappear