Uses of Class
cloud.opencode.base.date.extra.Interval

Packages that use Interval
  • Uses of Interval in cloud.opencode.base.date

    Methods in cloud.opencode.base.date that return Interval
    Modifier and Type
    Method
    Description
    static Interval
    DateTimes.interval(Instant start, Duration duration)
    Creates an Interval from start and duration 从开始时刻和时长创建Interval
    static Interval
    DateTimes.interval(Instant start, Instant end)
    Creates an Interval 创建Interval
  • Uses of Interval in cloud.opencode.base.date.extra

    Modifier and Type
    Method
    Description
    static Interval
    Interval.empty(Instant instant)
    Creates an empty Interval at the specified instant 在指定时刻创建空Interval
    Interval.expand(Duration duration)
    Expands this interval by the specified duration on both ends 在两端扩展此区间指定的时长
    static Interval
    Interval.of(Duration duration, Instant end)
    Creates an Interval from end Instant and Duration 从结束Instant和时长创建Interval
    static Interval
    Interval.of(Instant start, Duration duration)
    Creates an Interval from start Instant and Duration 从起始Instant和时长创建Interval
    static Interval
    Interval.of(Instant start, Instant end)
    Creates an Interval from start and end Instants 从起始和结束Instant创建Interval
    static Interval
    Interval.parse(CharSequence text)
    Parses an ISO 8601 interval string 解析ISO 8601区间字符串
    LocalDateTimeRange.toInterval(ZoneId zone)
    Converts this range to an Interval using the specified zone 使用指定时区将此范围转换为Interval
    Interval.union(Interval other)
    Gets the union of this interval with the specified interval 获取此区间与指定区间的并集
    Interval.withEnd(Instant end)
    Creates a new interval with a different end 创建具有不同结束的新区间
    Interval.withStart(Instant start)
    Creates a new interval with a different start 创建具有不同起始的新区间
    Methods in cloud.opencode.base.date.extra that return types with arguments of type Interval
    Modifier and Type
    Method
    Description
    Interval.gap(Interval other)
    Gets the gap between this interval and the specified interval 获取此区间与指定区间之间的间隙
    Interval.intersection(Interval other)
    Gets the intersection of this interval with the specified interval 获取此区间与指定区间的交集
    Methods in cloud.opencode.base.date.extra with parameters of type Interval
    Modifier and Type
    Method
    Description
    boolean
    Interval.abuts(Interval other)
    Checks if this interval abuts (is adjacent to) the specified interval 检查此区间是否与指定区间相邻
    boolean
    Interval.encloses(Interval other)
    Checks if this interval encloses (fully contains) the specified interval 检查此区间是否包围(完全包含)指定区间
    Interval.gap(Interval other)
    Gets the gap between this interval and the specified interval 获取此区间与指定区间之间的间隙
    Interval.intersection(Interval other)
    Gets the intersection of this interval with the specified interval 获取此区间与指定区间的交集
    boolean
    Interval.isAfter(Interval other)
    Checks if this interval is after the specified interval 检查此区间是否在指定区间之后
    boolean
    Interval.isBefore(Interval other)
    Checks if this interval is before the specified interval 检查此区间是否在指定区间之前
    boolean
    Interval.overlaps(Interval other)
    Checks if this interval overlaps with the specified interval 检查此区间是否与指定区间重叠
    Interval.union(Interval other)
    Gets the union of this interval with the specified interval 获取此区间与指定区间的并集