Uses of Class
com.google.mu.util.Ordinal

Packages that use Ordinal
Package
Description
StringFormat, Substring, Optionals and more...
  • Uses of Ordinal in com.google.mu.util

    Classes in com.google.mu.util that implement interfaces with type arguments of type Ordinal
    Modifier and Type
    Class
    Description
    final 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 Ordinal
    Modifier and Type
    Field
    Description
    static final Ordinal
    Ordinal.MAX_VALUE
    The maximum ordinal.
    Methods in com.google.mu.util that return Ordinal
    Modifier and Type
    Method
    Description
    static Ordinal
    Ordinal.first()
    Returns the first ordinal.
    static Ordinal
    Ordinal.fromIndex(int zeroBased)
    Returns instance corresponding to the zeroBased index.
    Ordinal.next()
    Returns the next ordinal.
    static Ordinal
    Ordinal.of(int oneBased)
    Returns instance corresponding to the oneBased number.
    static Ordinal
    Ordinal.of(Enum<?> e)
    Returns instance corresponding to the ordinal of the Enum object e.
    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 Ordinal
    Modifier and Type
    Method
    Description
    static Stream<Ordinal>
    Ordinal.natural()
    Returns the infinite stream of natural ordinals starting from "1st".
    Methods in com.google.mu.util with parameters of type Ordinal
    Modifier and Type
    Method
    Description
    int
    Ordinal.compareTo(Ordinal that)
    Compares to that according to natural order.
    int
    Ordinal.minus(Ordinal that)
    Returns the distance between this and that.