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.

@FunctionalInterface public interface ByteRange extends BytePredicate
Range specialization for byte.
  • Method Details

    • any

      @NotNull static @NotNull ByteRange any()
      Creates a range [-∞ ; +∞].
      Returns:
      created range
    • none

      @NotNull static @NotNull ByteRange none()
      Creates a range .
      Returns:
      created range
    • only

      @NotNull static @NotNull ByteRange only(byte value)
      Creates a range {value}.
      Parameters:
      value - the only value contained by the range
      Returns:
      created range
    • only

      @NotNull static @NotNull ByteRange only(byte @Own @NonNull ... values)
      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

      @NotNull static @NotNull ByteRange only(@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 takes ownership over values
    • onlyCopy

      @NotNull static @NotNull ByteRange onlyCopy(byte @Ref @NonNull ... values)
      Creates a range {x: x ∈ values}.
      Parameters:
      values - the only values contained by the range
      Returns:
      created range
      API note
      this copies values not 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 values not 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 values preserving order
    • except

      @NotNull static @NotNull ByteRange except(byte value)
      Creates a range ¬{value}.
      Parameters:
      value - the only value not contained by the range
      Returns:
      created range
    • except

      @NotNull static @NotNull ByteRange except(byte @Own @NonNull ... 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
    • except

      @NotNull static @NotNull ByteRange except(@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 takes ownership over values
    • exceptCopy

      @NotNull static @NotNull ByteRange exceptCopy(byte @Own @NonNull ... values)
      Creates a range {x: x ∉ values}.
      Parameters:
      values - the only values not contained by the range
      Returns:
      created range
      API note
      this copies values not 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 values not 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 values preserving order
    • greater

      @NotNull static @NotNull ByteRange greater(byte lowerBound)
      Creates a range (lowerBound; +∞).
      Parameters:
      lowerBound - lower exclusive bound of the range
      Returns:
      created range
    • greaterOrEqual

      @NotNull static @NotNull ByteRange greaterOrEqual(byte lowerBound)
      Creates a range [lowerBound; +∞).
      Parameters:
      lowerBound - lower inclusive bound of the range
      Returns:
      created range
    • less

      @NotNull static @NotNull ByteRange less(byte upperBound)
      Creates a range (∞; upperBound).
      Parameters:
      upperBound - upper inclusive bound of the range
      Returns:
      created range
    • lessOrEqual

      @NotNull static @NotNull ByteRange lessOrEqual(byte upperBound)
      Creates a range (∞; upperBound].
      Parameters:
      upperBound - upper exclusive bound of the range
      Returns:
      created range
    • between

      @NotNull static @NotNull ByteRange between(byte lowerBound, byte upperBound)
      Creates a range (lowerBound; upperBound).
      Parameters:
      lowerBound - lower exclusive bound of the range
      upperBound - upper exclusive bound of the range
      Returns:
      created range
    • betweenOrEqual

      @NotNull static @NotNull ByteRange betweenOrEqual(byte lowerBound, byte upperBound)
      Creates a range [lowerBound; upperBound].
      Parameters:
      lowerBound - lower inclusive bound of the range
      upperBound - upper inclusive bound of the range
      Returns:
      created range
    • fromExclusiveTo

      @NotNull static @NotNull ByteRange fromExclusiveTo(byte lowerBound, byte upperBound)
      Creates a range (lowerBound; upperBound].
      Parameters:
      lowerBound - lower exclusive bound of the range
      upperBound - upper inclusive bound of the range
      Returns:
      created range
    • fromToExclusive

      @NotNull static @NotNull ByteRange fromToExclusive(byte lowerBound, byte upperBound)
      Creates a range [lowerBound; upperBound).
      Parameters:
      lowerBound - lower inclusive bound of the range
      upperBound - upper exclusive bound of the range
      Returns:
      created range
    • anyOf

      @NotNull static @NotNull ByteRange anyOf(@NotNull @Ref @NotNull ByteRange @NonNull ... ranges)
      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

      @NotNull static @NotNull ByteRange anyOfCopy(@NotNull @Ref @NotNull ByteRange @NonNull ... ranges)
      Creates a range {x: ∃ range ∈ ranges: x ∈ range}.
      Parameters:
      ranges - matched disjunctive ranges
      Returns:
      created range
      API note
      this copies ranges preserving 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 ranges not 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 ranges preserving order
    • allOf

      @NotNull static @NotNull ByteRange allOf(@NotNull @Ref @NotNull ByteRange @NonNull ... ranges)
      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

      @NotNull static @NotNull ByteRange allOfCopy(@NotNull @Ref @NotNull ByteRange @NonNull ... ranges)
      Creates a range {x: ∀ range ∈ ranges, x ∈ range}.
      Parameters:
      ranges - matched conjunctive ranges
      Returns:
      created range
      API note
      this copies ranges preserving 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 ranges not 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 ranges preserving order
    • noneOf

      @NotNull static @NotNull ByteRange noneOf(@NotNull @Ref @NotNull ByteRange @NonNull ... 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
    • 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

      @NotNull static @NotNull ByteRange noneOfCopy(@NotNull @Ref @NotNull ByteRange @NonNull ... ranges)
      Creates a range {x: ∀ range ∈ ranges, x ∉ range}.
      Parameters:
      ranges - not matched conjunctive ranges
      Returns:
      created range
      API note
      this copies ranges preserving 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 ranges not 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 ranges preserving order