public final class RangeFun extends Object
5kg to 10kg
Mostly intended for use with for
loops:
for(int i: 1 to 10) {. . .}
for(Length len: 10ft to 100ft step 6 unit inch) {. . .}
for(var value: here to there) {. . .}
and if
statements:
if (2 inside 1 to 5) {...}
To use this class simply import the `to`, `step`, and other constants via:
import static manifold.collections.api.range.RangeFun.*;
Modifier and Type | Class and Description |
---|---|
static class |
RangeFun.Closed
For internal use.
|
static class |
RangeFun.Inside |
static class |
RangeFun.LeftOpen
For internal use.
|
static class |
RangeFun.Open
For internal use.
|
static class |
RangeFun.Outside |
static class |
RangeFun.RightOpen
For internal use.
|
static class |
RangeFun.Step |
static class |
RangeFun.Unit |
Modifier and Type | Field and Description |
---|---|
static RangeFun.LeftOpen |
_to |
static RangeFun.Open |
_to_ |
static RangeFun.Inside |
inside |
static RangeFun.Outside |
outside |
static RangeFun.Step |
step |
static RangeFun.Closed |
to |
static RangeFun.RightOpen |
to_ |
static RangeFun.Unit |
unit |
Constructor and Description |
---|
RangeFun() |
public static final RangeFun.Closed to
public static final RangeFun.LeftOpen _to
public static final RangeFun.RightOpen to_
public static final RangeFun.Open _to_
public static final RangeFun.Step step
public static final RangeFun.Unit unit
public static final RangeFun.Inside inside
public static final RangeFun.Outside outside
Copyright © 2024. All rights reserved.