Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VersionRange with open intervals #158

Closed
MattesMrzik opened this issue Dec 15, 2023 · 0 comments · Fixed by #159 or #170
Closed

VersionRange with open intervals #158

MattesMrzik opened this issue Dec 15, 2023 · 0 comments · Fixed by #159 or #170
Assignees
Labels
enhancement New feature or request

Comments

@MattesMrzik
Copy link
Contributor

The VersionRange currently only allows closed intervals that include the borders, i.e. [x,y] for x<=y.
This class should be modified to also allow open and half open intervals, i.e. (x,y), (x,y], [x,y), that can exclude the borders.
The String representation should be similar to the current VersionRange, where the two VersionIdentifiers are separated by >. If x is not set, then it is treated as -infinity, and missing y as infinity. So (1.2.3.>] and (1.2.3.>) both represent all versions that are greater than 1.2.3 , but not including version 1.2.3.

@MattesMrzik MattesMrzik added the enhancement New feature or request label Dec 15, 2023
@MattesMrzik MattesMrzik self-assigned this Dec 15, 2023
MattesMrzik added a commit to MattesMrzik/IDEasy that referenced this issue Dec 18, 2023
Extended the VersionRange to also model open boundaries that do not include the specified value. Also wrote tests for this class.
MattesMrzik added a commit to MattesMrzik/IDEasy that referenced this issue Dec 19, 2023
…e-with-open-intervals' into feature/devonfw#103-implement-version-security-checks

# Conflicts:
#	cli/src/test/java/com/devonfw/tools/ide/version/VersionRangeTest.java
MattesMrzik added a commit to MattesMrzik/IDEasy that referenced this issue Dec 19, 2023
MattesMrzik added a commit to MattesMrzik/IDEasy that referenced this issue Jan 2, 2024
MattesMrzik added a commit to MattesMrzik/IDEasy that referenced this issue Jan 2, 2024
MattesMrzik added a commit to MattesMrzik/IDEasy that referenced this issue Jan 2, 2024
MattesMrzik added a commit to MattesMrzik/IDEasy that referenced this issue Jan 2, 2024
hohwille added a commit to MattesMrzik/IDEasy that referenced this issue Jan 8, 2024
MattesMrzik added a commit to MattesMrzik/IDEasy that referenced this issue Jan 8, 2024
hohwille added a commit to MattesMrzik/IDEasy that referenced this issue Jan 8, 2024
@hohwille hohwille added this to the release:2024.01.001 milestone Jan 8, 2024
hohwille added a commit to hohwille/IDEasy that referenced this issue Jan 8, 2024
hohwille added a commit that referenced this issue Jan 16, 2024
@hohwille hohwille linked a pull request Jan 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
2 participants