Interface ByteRange
- All Superinterfaces:
BytePredicate,Predicate<@NotNull Byte>
- 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 byte.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull ByteRangeCreates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull ByteRangeCreates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull ByteRangeCreates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull ByteRangeCreates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull ByteRangeallOfCopyOrdered(@Ref @NonNull Iterable<@NotNull ByteRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∈ range}.static @NotNull ByteRangeany()Creates a range [-∞ ; +∞].static @NotNull ByteRangeCreates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull ByteRangeCreates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull ByteRangeCreates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull ByteRangeCreates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull ByteRangeanyOfCopyOrdered(@Ref @NonNull Iterable<@NotNull ByteRange> ranges) Creates a range {x: ∃ range ∈ ranges: x ∈ range}.static @NotNull ByteRangebetween(byte lowerBound, byte upperBound) Creates a range (lowerBound;upperBound).static @NotNull ByteRangebetweenOrEqual(byte lowerBound, byte upperBound) Creates a range [lowerBound;upperBound].static @NotNull ByteRangeexcept(byte value) Creates a range ¬{value}.static @NotNull ByteRangeCreates a range {x: x ∉values}.static @NotNull ByteRangeexcept(@Ref @NonNull Collection<@NotNull Byte> values) Creates a range {x: x ∉values}.static @NotNull ByteRangeexceptCopy(byte @Own @NonNull ... values) Creates a range {x: x ∉values}.static @NotNull ByteRangeexceptCopy(@Ref @NonNull Collection<@NotNull Byte> values) Creates a range {x: x ∉values}.static @NotNull ByteRangeexceptCopyOrdered(@Ref @NonNull Collection<@NotNull Byte> values) Creates a range {x: x ∉values}.static @NotNull ByteRangefromExclusiveTo(byte lowerBound, byte upperBound) Creates a range (lowerBound;upperBound].static @NotNull ByteRangefromToExclusive(byte lowerBound, byte upperBound) Creates a range [lowerBound;upperBound).static @NotNull ByteRangegreater(byte lowerBound) Creates a range (lowerBound; +∞).static @NotNull ByteRangegreaterOrEqual(byte lowerBound) Creates a range [lowerBound; +∞).static @NotNull ByteRangeless(byte upperBound) Creates a range (∞;upperBound).static @NotNull ByteRangelessOrEqual(byte upperBound) Creates a range (∞;upperBound].static @NotNull ByteRangenone()Creates a range ∅.static @NotNull ByteRangeCreates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull ByteRangeCreates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull ByteRangenoneOfCopy(@Ref @NonNull Iterable<@NotNull ByteRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull ByteRangenoneOfCopy(@Ref @NotNull ByteRange @NonNull ... ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull ByteRangenoneOfCopyOrdered(@Ref @NonNull Iterable<@NotNull ByteRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.static @NotNull ByteRangeonly(byte value) Creates a range {value}.static @NotNull ByteRangeCreates a range {x: x ∈values}.static @NotNull ByteRangeonly(@Ref @NonNull Collection<@NotNull Byte> values) Creates a range {x: x ∈values}.static @NotNull ByteRangeCreates a range {x: x ∈values}.static @NotNull ByteRangeonlyCopy(@Ref @NonNull Collection<@NotNull Byte> values) Creates a range {x: x ∈values}.static @NotNull ByteRangeonlyCopyOrdered(@Ref @NonNull Collection<@NotNull Byte> values) Creates a range {x: x ∈values}.Methods inherited from interface ru.progrm_jarvis.javacommons.util.function.BytePredicate
and, and, negate, or, or, test, testAsByte
-
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 ByteRange onlyCopy(@NonNull @Ref @NonNull Collection<@NotNull Byte> 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 ByteRange onlyCopyOrdered(@NonNull @Ref @NonNull Collection<@NotNull Byte> 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 ByteRange exceptCopy(@NonNull @Ref @NonNull Collection<@NotNull Byte> 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 ByteRange exceptCopyOrdered(@NonNull @Ref @NonNull Collection<@NotNull Byte> 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 ByteRange anyOf(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> 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 ByteRange anyOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> 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 ByteRange anyOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> 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 ByteRange allOf(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> 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 ByteRange allOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> 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 ByteRange allOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> 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 ByteRange noneOf(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> 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 ByteRange noneOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> 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 ByteRange noneOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull ByteRange> ranges) Creates a range {x: ∀ range ∈ ranges, x ∉ range}.- Parameters:
ranges- not matched conjunctive ranges- Returns:
- created range
- API note
- this copies
rangespreserving order
-