ReplaceTimeRange類

ReplaceTimeRange實用程式類是TimeRange類的擴展,將與CustomRangeMetadata一起使用。

public class ReplaceTimeRange extends TimeRange {
    // Default constructor method
    public ReplaceTimeRange() {
        ...
    }

    // Details of begining, duration and replaceDuration
    // provided at construction time
    public ReplaceTimeRange(long begin, long duration, long replaceDuration) {
        ...
    }

    // Replace duration
    public long getReplaceDuration() {
        ...
    }
}

本頁內容