Interface ShortRange

All Superinterfaces:
Predicate<@NotNull Short>, ShortPredicate
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 ShortRange extends ShortPredicate
Range specialization for short.
  • Method Details

    • any

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

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

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

      @NotNull static @NotNull ShortRange only(short @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 ShortRange only(@NonNull @Ref @NonNull Collection<@NotNull Short> 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 ShortRange onlyCopy(short @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 ShortRange onlyCopy(@NonNull @Ref @NonNull Collection<@NotNull Short> 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 ShortRange onlyCopyOrdered(@NonNull @Ref @NonNull Collection<@NotNull Short> 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 ShortRange except(short value)
      Creates a range ¬{value}.
      Parameters:
      value - the only value not contained by the range
      Returns:
      created range
    • except

      @NotNull static @NotNull ShortRange except(short @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 ShortRange except(@NonNull @Ref @NonNull Collection<@NotNull Short> 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 ShortRange exceptCopy(short @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 ShortRange exceptCopy(@NonNull @Ref @NonNull Collection<@NotNull Short> 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 ShortRange exceptCopyOrdered(@NonNull @Ref @NonNull Collection<@NotNull Short> 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 ShortRange greater(short lowerBound)
      Creates a range (lowerBound; +∞).
      Parameters:
      lowerBound - lower exclusive bound of the range
      Returns:
      created range
    • greaterOrEqual

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

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

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

      @NotNull static @NotNull ShortRange between(short lowerBound, short 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 ShortRange betweenOrEqual(short lowerBound, short 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 ShortRange fromExclusiveTo(short lowerBound, short 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 ShortRange fromToExclusive(short lowerBound, short 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 ShortRange anyOf(@NotNull @Ref @NotNull ShortRange @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 ShortRange anyOf(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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 ShortRange anyOfCopy(@NotNull @Ref @NotNull ShortRange @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 ShortRange anyOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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 ShortRange anyOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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 ShortRange allOf(@NotNull @Ref @NotNull ShortRange @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 ShortRange allOf(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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 ShortRange allOfCopy(@NotNull @Ref @NotNull ShortRange @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 ShortRange allOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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 ShortRange allOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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 ShortRange noneOf(@NotNull @Ref @NotNull ShortRange @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 ShortRange noneOf(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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 ShortRange noneOfCopy(@NotNull @Ref @NotNull ShortRange @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 ShortRange noneOfCopy(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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 ShortRange noneOfCopyOrdered(@NonNull @Ref @NonNull Iterable<@NotNull ShortRange> 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