Occupied

final class Occupied(val label: Color) extends Demographic

An Occupied object signals that a household belongs to a demographic specific by the color label stored within the Occupied object. For instance, a residence may be “occupied by the red demographic”, or “occupied by the blue demographic”.

An Occupied object is immutable

Value parameters:
label

a color that distinguishes the occupying demographic from others

class Object
trait Matchable
class Any

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes

Concrete fields