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.

@FunctionalInterface public interface FloatRange extends FloatPredicate
Range specialization for float.
  • Method Details

    • any

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

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

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

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

      @NotNull static @NotNull FloatRange onlyCopy(float @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 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 values not 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 values preserving order
    • except

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

      @NotNull static @NotNull FloatRange except(float @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 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

      @NotNull static @NotNull FloatRange exceptCopy(float @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 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 values not 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 values preserving order
    • greater

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

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

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

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

      @NotNull static @NotNull FloatRange between(float lowerBound, float 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 FloatRange betweenOrEqual(float lowerBound, float 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 FloatRange fromExclusiveTo(float lowerBound, float 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 FloatRange fromToExclusive(float lowerBound, float 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 FloatRange anyOf(@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 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 ranges preserving 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 ranges not 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 ranges preserving order
    • allOf

      @NotNull static @NotNull FloatRange allOf(@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 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 ranges preserving 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 ranges not 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 ranges preserving order
    • noneOf

      @NotNull static @NotNull FloatRange noneOf(@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 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 ranges preserving 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 ranges not 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 ranges preserving order