Package it.unimi.di.prog2.h15
Class IntRange
java.lang.Object
it.unimi.di.prog2.h15.IntRange
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Iterable of integers with configurable initial from, to, and step values. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntRange.Builder
from
(int from) Returns anIntRange.Builder
with the assigned from value.static IntRange.Builder
step
(int step) Returns anIntRange.Builder
with the assigned step value.static IntRange.Builder
to
(int to) Returns anIntRange.Builder
with the assigned end value.
-
Constructor Details
-
IntRange
public IntRange()
-
-
Method Details
-
from
Returns anIntRange.Builder
with the assigned from value.- Parameters:
from
- the from value.- Returns:
- the
IntRange.Builder
.
-
to
Returns anIntRange.Builder
with the assigned end value.- Parameters:
to
- the end value.- Returns:
- the
IntRange.Builder
.
-
step
Returns anIntRange.Builder
with the assigned step value.- Parameters:
step
- the step value.- Returns:
- the
IntRange.Builder
.
-