CourtCase

o1.legal.CourtCase
class CourtCase(val plaintiff: Entity, val defendant: Entity)

Each instance of this class represents a single court case in which one Entity is the plaintiff and another is the defendant.

This toy class represents no other information about the court case beyond the two legal entities involved.

Parameters

plaintiff

the initiator of the court case

defendant

the entity that responds against an accusation in the case

Attributes

Supertypes
class Object
trait Matchable
class Any

Members list

Keywords
  • no keywords
  • override

Value members

Concrete methods

override def toString: String

Describes the court case. The description is a string of the form "PLAINTIFF v. DEFENDANT", using the name of the two parties. E.g., "Jane Doe v. ACME Corp".

Describes the court case. The description is a string of the form "PLAINTIFF v. DEFENDANT", using the name of the two parties. E.g., "Jane Doe v. ACME Corp".

Definition Classes
Any

Concrete fields