Uses of Class
com.google.mu.util.Ordinal
Packages that use Ordinal
-
Uses of Ordinal in com.google.mu.util
Classes in com.google.mu.util that implement interfaces with type arguments of type OrdinalModifier and TypeClassDescriptionfinal class
This class provides type-safe transition between 1-based Ordinal and 0-based indexes that are commonly used to index arrays and lists.Fields in com.google.mu.util declared as OrdinalMethods in com.google.mu.util that return OrdinalModifier and TypeMethodDescriptionstatic Ordinal
Ordinal.first()
Returns the first ordinal.static Ordinal
Ordinal.fromIndex
(int zeroBased) Returns instance corresponding to thezeroBased
index.Ordinal.next()
Returns the next ordinal.static Ordinal
Ordinal.of
(int oneBased) Returns instance corresponding to theoneBased
number.static Ordinal
Returns instance corresponding to the ordinal of the Enum objecte
.Ordinal.previous()
Returns the previous ordinal.static Ordinal
Ordinal.second()
Returns the second ordinal.Methods in com.google.mu.util that return types with arguments of type OrdinalModifier and TypeMethodDescriptionOrdinal.natural()
Returns the infinite stream of natural ordinals starting from "1st".Methods in com.google.mu.util with parameters of type Ordinal