Skip to content
Advertisement

Does an open-ended interval implementation exist for Java?

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

Advertisement

Answer

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

See these files in their svn: interval package.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement