Interface LongRange
- All Superinterfaces:
LongPredicate,LongPredicate,Predicate<@NotNull Long>
- 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 long.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull LongRangeCreates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull LongRangeCreates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull LongRangeCreates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull LongRangeCreates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull LongRangeallOfCopyOrdered(@Ref @NonNull Iterable<@NotNull LongRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull LongRangeany()Creates a range [-∞ ; +∞].static @NotNull LongRangeCreates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull LongRangeCreates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull LongRangeCreates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull LongRangeCreates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull LongRangeanyOfCopyOrdered(@Ref @NonNull Iterable<@NotNull LongRange> ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull LongRangebetween(long lowerBound, long upperBound) Creates a range (lowerBound;upperBound).static @NotNull LongRangebetweenOrEqual(long lowerBound, long upperBound) Creates a range [lowerBound;upperBound].static @NotNull LongRangeexcept(long value) Creates a range ¬{value}.static @NotNull LongRangeCreates a range {x: x ∉values}.static @NotNull LongRangeexcept(@Ref @NonNull Collection<@NotNull Long> values) Creates a range {x: x ∉values}.static @NotNull LongRangeexceptCopy(long @Own @NonNull ... values) Creates a range {x: x ∉values}.static @NotNull LongRangeexceptCopy(@Ref @NonNull Collection<@NotNull Long> values) Creates a range {x: x ∉values}.static @NotNull LongRangeexceptCopyOrdered(@Ref @NonNull Collection<@NotNull Long> values) Creates a range {x: x ∉values}.static @NotNull LongRangefromExclusiveTo(long lowerBound, long upperBound) Creates a range (lowerBound;upperBound].static @NotNull LongRangefromToExclusive(long lowerBound, long upperBound) Creates a range [lowerBound;upperBound).static @NotNull LongRangegreater(long lowerBound) Creates a range (lowerBound; +∞).static @NotNull LongRangegreaterOrEqual(long lowerBound) Creates a range [lowerBound; +∞).static @NotNull LongRangeless(long upperBound) Creates a range (∞;upperBound).static @NotNull LongRangelessOrEqual(long upperBound) Creates a range (∞;upperBound].static @NotNull LongRangenone()Creates a range ∅.static @NotNull LongRangeCreates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull LongRangeCreates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull LongRangenoneOfCopy(@Ref @NonNull Iterable<@NotNull LongRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull LongRangenoneOfCopy(@Ref @NotNull LongRange @NonNull ... ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull LongRangenoneOfCopyOrdered(@Ref @NonNull Iterable<@NotNull LongRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull LongRangeonly(long value) Creates a range {value}.static @NotNull LongRangeCreates a range {x: x ∈values}.static @NotNull LongRangeonly(@Ref @NonNull Collection<@NotNull Long> values) Creates a range {x: x ∈values}.static @NotNull LongRangeCreates a range {x: x ∈values}.static @NotNull LongRangeonlyCopy(@Ref @NonNull Collection<@NotNull Long> values) Creates a range {x: x ∈values}.static @NotNull LongRangeonlyCopyOrdered(@Ref @NonNull Collection<@NotNull Long> values) Creates a range {x: x ∈values}.
-
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 LongRange onlyCopy(@NonNull @Ref @NonNull Collection<@NotNull Long> 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 LongRange onlyCopyOrdered(@NonNull @Ref @NonNull Collection<@NotNull Long> 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
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 LongRange exceptCopy(@NonNull @Ref @NonNull Collection<@NotNull Long> 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 LongRange exceptCopyOrdered(@NonNull @Ref @NonNull Collection<@NotNull Long> 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 LongRange anyOf(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> 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
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 LongRange anyOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> 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 LongRange anyOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> 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 LongRange allOf(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> 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
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 LongRange allOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> 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 LongRange allOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> 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 LongRange noneOf(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> 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
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 LongRange noneOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> 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 LongRange noneOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull LongRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.- Parameters:
ranges- not matched conjunctive ranges- Returns:
- created range
- API note
- this copies
rangespreserving order
-