Java是否存在开放式间隔实现?

编程入门 行业动态 更新时间:2024-10-10 08:22:16
本文介绍了Java是否存在开放式间隔实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在不同的时间间隔内对某些值进行了分类。大多数都有[20-30]的形式,但有些形式是[30-infinite]。

是否有一个你知道的间隔类可以表示: / p>

  • 两边都没有关闭的间隔(例如(0-5)或[0-5))
  • 在无限期关闭(或开始)的间隔

解决方案

Time& Money 项目似乎有你需要的Interval课程。

在他们的svn中查看这些文件: interval package 。

I've got a classification of certain values in different intervals. Most have the form [20-30], but some are of the form [30-infinite).

Is there an interval class you know of which can represent:

  • an interval which is not closed on both sides (e.g. (0-5) or [0-5) )
  • an interval which closes (or starts) on infinite

解决方案

Time&Money project seems to have Interval class that you need.

See these files in their svn: interval package.

更多推荐

Java是否存在开放式间隔实现?

本文发布于:2023-11-30 22:02:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1651605.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:开放式   间隔   是否存在   Java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!