forked from devonfw/IDEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devonfw#158: VersionRange with open boundaries
Extended the VersionRange to also model open boundaries that do not include the specified value. Also wrote tests for this class.
- Loading branch information
1 parent
1d60d9c
commit 9574f8d
Showing
4 changed files
with
308 additions
and
7 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
cli/src/main/java/com/devonfw/tools/ide/version/BoundaryType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.devonfw.tools.ide.version; | ||
|
||
/** | ||
* Enum representing the type of interval regarding its boundaries. | ||
*/ | ||
public enum BoundaryType { | ||
|
||
/** Closed interval - includes the specified values at the boundaries. */ | ||
CLOSED, | ||
|
||
/** Open interval - excludes the specified values at the boundaries. */ | ||
OPEN, | ||
|
||
/** Left open interval - excludes the lower bound but includes the upper bound. */ | ||
LEFT_OPEN, | ||
|
||
/** Right open interval - includes the lower bound but excludes the upper bound. */ | ||
RIGHT_OPEN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.