本文介绍了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是否存在开放式间隔实现?
发布评论