Interface FloatRange
- All Superinterfaces:
FloatPredicate,Predicate<@NotNull Float>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Range specialization for float.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull FloatRangeallOf(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull FloatRangeallOf(@Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull FloatRangeallOfCopy(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull FloatRangeallOfCopy(@Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull FloatRangeallOfCopyOrdered(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull FloatRangeany()Creates a range [-∞ ; +∞].static @NotNull FloatRangeanyOf(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull FloatRangeanyOf(@Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull FloatRangeanyOfCopy(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull FloatRangeanyOfCopy(@Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull FloatRangeanyOfCopyOrdered(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull FloatRangebetween(float lowerBound, float upperBound) Creates a range (lowerBound;upperBound).static @NotNull FloatRangebetweenOrEqual(float lowerBound, float upperBound) Creates a range [lowerBound;upperBound].static @NotNull FloatRangeexcept(float value) Creates a range ¬{value}.static @NotNull FloatRangeCreates a range {x: x ∉values}.static @NotNull FloatRangeexcept(@Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∉values}.static @NotNull FloatRangeexceptCopy(float @Own @NonNull ... values) Creates a range {x: x ∉values}.static @NotNull FloatRangeexceptCopy(@Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∉values}.static @NotNull FloatRangeexceptCopyOrdered(@Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∉values}.static @NotNull FloatRangefromExclusiveTo(float lowerBound, float upperBound) Creates a range (lowerBound;upperBound].static @NotNull FloatRangefromToExclusive(float lowerBound, float upperBound) Creates a range [lowerBound;upperBound).static @NotNull FloatRangegreater(float lowerBound) Creates a range (lowerBound; +∞).static @NotNull FloatRangegreaterOrEqual(float lowerBound) Creates a range [lowerBound; +∞).static @NotNull FloatRangeless(float upperBound) Creates a range (∞;upperBound).static @NotNull FloatRangelessOrEqual(float upperBound) Creates a range (∞;upperBound].static @NotNull FloatRangenone()Creates a range ∅.static @NotNull FloatRangenoneOf(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull FloatRangenoneOf(@Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull FloatRangenoneOfCopy(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull FloatRangenoneOfCopy(@Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull FloatRangenoneOfCopyOrdered(@Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull FloatRangeonly(float value) Creates a range {value}.static @NotNull FloatRangeCreates a range {x: x ∈values}.static @NotNull FloatRangeonly(@Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∈values}.static @NotNull FloatRangeCreates a range {x: x ∈values}.static @NotNull FloatRangeonlyCopy(@Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∈values}.static @NotNull FloatRangeonlyCopyOrdered(@Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∈values}.Methods inherited from interface ru.progrm_jarvis.javacommons.util.function.FloatPredicate
and, and, negate, or, or, test, testAsFloat
-
Method Details
-
any
Creates a range [-∞ ; +∞].- Returns:
- created range
-
none
Creates a range ∅.- Returns:
- created range
-
only
Creates a range {value}.- Parameters:
value- the only value contained by the range- Returns:
- created range
-
only
Creates a range {x: x ∈values}.- Parameters:
values- the only values contained by the range- Returns:
- created range
- API note
- this takes ownership over
values
-
only
Creates a range {x: x ∈values}.- Parameters:
values- the only values contained by the range- Returns:
- created range
- API note
- this takes ownership over
values
-
onlyCopy
Creates a range {x: x ∈values}.- Parameters:
values- the only values contained by the range- Returns:
- created range
- API note
- this copies
valuesnot preserving order
-
onlyCopy
@NotNull static @NotNull FloatRange onlyCopy(@NonNull @Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∈values}.- Parameters:
values- the only values contained by the range- Returns:
- created range
- API note
- this copies
valuesnot preserving order
-
onlyCopyOrdered
@NotNull static @NotNull FloatRange onlyCopyOrdered(@NonNull @Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∈values}.- Parameters:
values- the only values contained by the range- Returns:
- created range
- API note
- this copies
valuespreserving order
-
except
Creates a range ¬{value}.- Parameters:
value- the only value not contained by the range- Returns:
- created range
-
except
Creates a range {x: x ∉values}.- Parameters:
values- the only values not contained by the range- Returns:
- created range
- API note
- this takes ownership over
values
-
except
@NotNull static @NotNull FloatRange except(@NonNull @Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∉values}.- Parameters:
values- the only values not contained by the range- Returns:
- created range
- API note
- this takes ownership over
values
-
exceptCopy
Creates a range {x: x ∉values}.- Parameters:
values- the only values not contained by the range- Returns:
- created range
- API note
- this copies
valuesnot preserving order
-
exceptCopy
@NotNull static @NotNull FloatRange exceptCopy(@NonNull @Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∉values}.- Parameters:
values- the only values not contained by the range- Returns:
- created range
- API note
- this copies
valuesnot preserving order
-
exceptCopyOrdered
@NotNull static @NotNull FloatRange exceptCopyOrdered(@NonNull @Ref @NonNull Collection<@NotNull Float> values) Creates a range {x: x ∉values}.- Parameters:
values- the only values not contained by the range- Returns:
- created range
- API note
- this copies
valuespreserving order
-
greater
Creates a range (lowerBound; +∞).- Parameters:
lowerBound- lower exclusive bound of the range- Returns:
- created range
-
greaterOrEqual
Creates a range [lowerBound; +∞).- Parameters:
lowerBound- lower inclusive bound of the range- Returns:
- created range
-
less
Creates a range (∞;upperBound).- Parameters:
upperBound- upper inclusive bound of the range- Returns:
- created range
-
lessOrEqual
Creates a range (∞;upperBound].- Parameters:
upperBound- upper exclusive bound of the range- Returns:
- created range
-
between
Creates a range (lowerBound;upperBound).- Parameters:
lowerBound- lower exclusive bound of the rangeupperBound- upper exclusive bound of the range- Returns:
- created range
-
betweenOrEqual
Creates a range [lowerBound;upperBound].- Parameters:
lowerBound- lower inclusive bound of the rangeupperBound- upper inclusive bound of the range- Returns:
- created range
-
fromExclusiveTo
Creates a range (lowerBound;upperBound].- Parameters:
lowerBound- lower exclusive bound of the rangeupperBound- upper inclusive bound of the range- Returns:
- created range
-
fromToExclusive
Creates a range [lowerBound;upperBound).- Parameters:
lowerBound- lower inclusive bound of the rangeupperBound- upper exclusive bound of the range- Returns:
- created range
-
anyOf
Creates a range {x: ∃ range ∈ ranges: x ∈ range}.- Parameters:
ranges- matched disjunctive ranges- Returns:
- created range
- API note
- this takes ownership over
ranges
-
anyOf
@NotNull static @NotNull FloatRange anyOf(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.- Parameters:
ranges- matched disjunctive ranges- Returns:
- created range
- API note
- this takes ownership over
ranges
-
anyOfCopy
@NotNull static @NotNull FloatRange anyOfCopy(@NotNull @Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.- Parameters:
ranges- matched disjunctive ranges- Returns:
- created range
- API note
- this copies
rangespreserving order
-
anyOfCopy
@NotNull static @NotNull FloatRange anyOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.- Parameters:
ranges- matched disjunctive ranges- Returns:
- created range
- API note
- this copies
rangesnot preserving order
-
anyOfCopyOrdered
@NotNull static @NotNull FloatRange anyOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.- Parameters:
ranges- matched disjunctive ranges- Returns:
- created range
- API note
- this copies
rangespreserving order
-
allOf
Creates a range {x: ∀ range ∈ ranges, x ∈ range}.- Parameters:
ranges- matched conjunctive ranges- Returns:
- created range
- API note
- this takes ownership over
ranges
-
allOf
@NotNull static @NotNull FloatRange allOf(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.- Parameters:
ranges- matched conjunctive ranges- Returns:
- created range
- API note
- this takes ownership over
ranges
-
allOfCopy
@NotNull static @NotNull FloatRange allOfCopy(@NotNull @Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.- Parameters:
ranges- matched conjunctive ranges- Returns:
- created range
- API note
- this copies
rangespreserving order
-
allOfCopy
@NotNull static @NotNull FloatRange allOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.- Parameters:
ranges- matched conjunctive ranges- Returns:
- created range
- API note
- this copies
rangesnot preserving order
-
allOfCopyOrdered
@NotNull static @NotNull FloatRange allOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.- Parameters:
ranges- matched conjunctive ranges- Returns:
- created range
- API note
- this copies
rangespreserving order
-
noneOf
Creates a range {x: ∀ range ∈ ranges, x ∉ range}.- Parameters:
ranges- not matched conjunctive ranges- Returns:
- created range
- API note
- this takes ownership over
ranges
-
noneOf
@NotNull static @NotNull FloatRange noneOf(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.- Parameters:
ranges- not matched conjunctive ranges- Returns:
- created range
- API note
- this takes ownership over
ranges
-
noneOfCopy
@NotNull static @NotNull FloatRange noneOfCopy(@NotNull @Ref @NotNull FloatRange @NonNull ... ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.- Parameters:
ranges- not matched conjunctive ranges- Returns:
- created range
- API note
- this copies
rangespreserving order
-
noneOfCopy
@NotNull static @NotNull FloatRange noneOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.- Parameters:
ranges- not matched conjunctive ranges- Returns:
- created range
- API note
- this copies
rangesnot preserving order
-
noneOfCopyOrdered
@NotNull static @NotNull FloatRange noneOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull FloatRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.- Parameters:
ranges- not matched conjunctive ranges- Returns:
- created range
- API note
- this copies
rangespreserving order
-