CalendarYear class

The period of 365 days (or 366 days in leap years) starting from the first of January; used for reckoning time in ordinary affairs.

Inheritance

Constructors

CalendarYear(int year)
Constructs a instance for year.

Properties

centerValue TimeInstant
The value at the center of the range.
no setterinherited
delta TimeInstant
The change in value from start to end, which may be negative.
no setterinherited
hashCode int
Two equal quantity ranges will have the same hash code.
no setterinherited
maxValue TimeInstant
The maximum value in this range.
no setterinherited
minValue TimeInstant
The minimum value in this range.
no setterinherited
q1 TimeInstant
The starting quantity of the range.
getter/setter pairinherited
q2 TimeInstant
The ending quantity of the range.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span TimeInstant
The magnitude of the range. This value is always positive (or zero). Get delta for the signed version of the range.
no setterinherited

Methods

contains(TimeInstant quantity, [bool inclusive = true, double epsilon = 1.0e-10]) bool
True if this range contains quantity, with a tolerance, epsilon, of rounding errors of 1.0e-10 and inclusive of the endpoints by default.
inherited
encompasses(QuantityRange<TimeInstant> range2) bool
True only if this range completely encompasses range2.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overlaps(QuantityRange<TimeInstant> range2) bool
Returns true if this range overlaps range2 (exclusive of the endpoints).
inherited
toString() String
Returns a String representation of this range in the form '
override

Operators

operator ==(dynamic obj) bool
Two quantity ranges are considered equal only if their endpoints are exactly equal.
inherited