Does an open-ended interval implementation exist for Java?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 12:33:33

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

See these files in their svn: interval package.

Gadi

The Apache-commons-lang project (http://commons.apache.org/lang/) contains classes dealing with ranges (like IntRange - https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/math/IntRange.html). I'm not sure it covers all your needs, but it might be worth checking.

I know of no library classes, but I recall rather trivially writing such classes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!