Java是否存在开放式间隔实现? [英] Does an open-ended interval implementation exist for Java?

查看:101
本文介绍了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是否存在开放式间隔实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆