Period<T extends Comparable<T> > class
Represents a length between two points in time.
The precedence of a Period is determined by both its start and end. A Period that starts first has higher precedence. If several Periods share the same start, the Period that ends first has higher precedence. A Period may contain an optional priority to determine the precedence of Periods that have the same start and end; higher priority equates to higher precedence.
- Mixed-in types
- Available extensions
Constructors
Properties
- end → T
-
The end of this Period.
final
- hash → int
-
The hashCode for this Relatable.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- priority → int
-
The priority for this Period used to determine precedence when several Periods
share the same start and end.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → T
-
The start of this Period.
final
Methods
-
compareTo(
Period< T> other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator <(
Period< T> other) → bool -
inherited
-
operator <=(
Period< T> other) → bool -
inherited
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited
-
operator >(
Period< T> other) → bool -
inherited
-
operator >=(
Period< T> other) → bool -
inherited