Interface InfiniteSet<E>
- All Superinterfaces:
Set<E>
- All Known Implementing Classes:
Complexes, Integers, Naturals, Octonions, Quaternions, Rationals, Reals
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 TypeMethodDescriptionbooleanReturnstrueif 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()Returnstrueif 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:
trueif this set is countable
-