CalendarYearLevels

vecxt_re.CalendarYearLevels
See theCalendarYearLevels companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(currentYear: Int, years: Array[Int], levels: Array[Double]): CalendarYearLevels

Create a CalendarYearLevels with years already in contiguous descending order starting at currentYear. The input arrays are copied.

Create a CalendarYearLevels with years already in contiguous descending order starting at currentYear. The input arrays are copied.

Attributes

def apply(years: Array[Int], levels: Array[Double]): CalendarYearLevels

Create a CalendarYearLevels from arrays of years and their corresponding index levels. Years may be provided in any order, but must be contiguous (no gaps) and unique. The current year is set to the most recent year.

Create a CalendarYearLevels from arrays of years and their corresponding index levels. Years may be provided in any order, but must be contiguous (no gaps) and unique. The current year is set to the most recent year.

Value parameters

levels

Array of index levels for each year

years

Array of calendar years

Attributes

Returns

CalendarYearLevels with the current year set to the most recent year

def apply(entries: Seq[(year: Int, level: Double)]): CalendarYearLevels

Create a CalendarYearLevels from (year, level) pairs, in any order. Years must be contiguous and unique.

Create a CalendarYearLevels from (year, level) pairs, in any order. Years must be contiguous and unique.

CalendarYearLevels(Seq((year = 2025, level = 3.70e12), (year = 2026, level = 3.80e12)))

Attributes