IsEternal returns true if this interval represents all time.
()
| 352 | |
| 353 | // IsEternal returns true if this interval represents all time. |
| 354 | func (i Interval) IsEternal() bool { |
| 355 | return i.Start.Type == NegativeInfinityBound && |
| 356 | i.End.Type == PositiveInfinityBound |
| 357 | } |
| 358 | |
| 359 | // IsPoint returns true if this interval represents a single point in time. |
| 360 | func (i Interval) IsPoint() bool { |
no outgoing calls