Interface InfiniteSet<E>

All Superinterfaces:
Set<E>
All Known Implementing Classes:
Complexes, Integers, Naturals, Octonions, Quaternions, Rationals, Reals

public interface InfiniteSet<E> extends Set<E>
Represents a set with an infinite number of elements.

Infinite sets cannot be iterated over completely and do not have a finite size. Examples include the set of natural numbers ℕ, real numbers ℝ, etc.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this set is countable (i.e., its elements can be put in one-to-one correspondence with the natural numbers).

    Methods inherited from interface Set

    contains, description, isEmpty
  • Method Details

    • isCountable

      boolean isCountable()
      Returns true if this set is countable (i.e., its elements can be put in one-to-one correspondence with the natural numbers).

      Examples:

      • Countable: â„• (Natural numbers), ℤ (Integers), ℚ (Rational numbers)
      • Uncountable: ℝ (Real numbers), â„‚ (Complex numbers)

      Returns:
      true if this set is countable