Interface Sequence<T>
- All Known Subinterfaces:
InfiniteSequence<T>
- All Known Implementing Classes:
FibonacciSequence, GeometricSeries, HarmonicSeries, PowerSeries
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a mathematical sequence of elements.
A sequence is an ordered list of elements (a_0, a_1, a_2, ...).
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
-
Method Details
-
get
Returns the element at the specified index (0-based).- Parameters:
index- the index of the element to retrieve- Returns:
- the element at the specified index
- Throws:
IndexOutOfBoundsException- if the index is negative or out of bounds for finite sequences
-