| Modifier | Constructor and Description |
|---|---|
private |
DefaultTimeline() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDomainRange(java.util.Date from,
java.util.Date to)
Returns
true if the timeline includes the specified
domain value range. |
boolean |
containsDomainRange(long from,
long to)
Returns
true if the timeline includes the specified
domain value range. |
boolean |
containsDomainValue(java.util.Date date)
Returns
true if the timeline includes the specified
domain value. |
boolean |
containsDomainValue(long millisecond)
Returns
true if the timeline includes the specified
domain value. |
boolean |
equals(java.lang.Object object)
Tests an object for equality with this instance.
|
long |
toMillisecond(long value)
Converts a timeline value into a millisecond (as encoded by
java.util.Date). |
long |
toTimelineValue(java.util.Date date)
Converts a date into a timeline value.
|
long |
toTimelineValue(long millisecond)
Converts a millisecond into a timeline value.
|
public long toTimelineValue(long millisecond)
toTimelineValue in interface Timelinemillisecond - the millisecond.public long toTimelineValue(java.util.Date date)
toTimelineValue in interface Timelinedate - the domain value.public long toMillisecond(long value)
java.util.Date).toMillisecond in interface Timelinevalue - the value.SegmentedTimelinepublic boolean containsDomainValue(long millisecond)
true if the timeline includes the specified
domain value.containsDomainValue in interface Timelinemillisecond - the millisecond.true.public boolean containsDomainValue(java.util.Date date)
true if the timeline includes the specified
domain value.containsDomainValue in interface Timelinedate - the date.true.public boolean containsDomainRange(long from,
long to)
true if the timeline includes the specified
domain value range.containsDomainRange in interface Timelinefrom - the start value.to - the end value.true.public boolean containsDomainRange(java.util.Date from,
java.util.Date to)
true if the timeline includes the specified
domain value range.containsDomainRange in interface Timelinefrom - the start date.to - the end date.true.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the object.