Skip to content

Commit 22dc91b

Browse files
mp911deodrotbohm
authored andcommitted
DATACMNS-1050 - Encapsulate boundaries in value objects for Range.
We now encapsulate a boundary in Range within a Bound value object. Bound consists of a value and whether the value is inclusive or exclusive. Boundaries without a value are unbounded. We introduced factory methods for Range and Boundary creation using primitives and a builder to build a Range. Range<Long> range = Range.unbounded(); Range<Integer> range = Range.from(Bound.inclusive(10)).to(Bound.inclusive(20)); Range<Integer> range = Range.of(Bound.inclusive(10), Bound.inclusive(20)); Original pull request: #121.
1 parent 233fde3 commit 22dc91b

File tree

3 files changed

+447
-28
lines changed

3 files changed

+447
-28
lines changed

0 commit comments

Comments
 (0)