Uses of Enum
fj.Ordering

Packages that use Ordering
Package
Description
Types that set the premise for the existence of Functional Java.
Common algebraic data types.
  • Uses of Ordering in fj

    Subclasses with type arguments of type Ordering in fj
    Modifier and Type
    Class
    Description
    enum 
    The comparison of two instances of a type may have one of three orderings; less than, equal or greater than.
    Fields in fj with type parameters of type Ordering
    Modifier and Type
    Field
    Description
    static final Ord<Ordering>
    An order instance for the Ordering type.
    Methods in fj that return Ordering
    Modifier and Type
    Method
    Description
    Ord.AltDefinition.compare(A a1, A a2)
     
    Ord.compare(A a1, A a2)
    Returns an ordering for the given arguments.
    default Ordering
    Ord.Definition.compare(A a1, A a2)
     
    static Ordering
    Ordering.fromInt(int cmp)
     
    Ordering.reverse()
     
    static Ordering
    Ordering.valueOf(String name)
    Returns the enum constant of this type with the specified name.
    static Ordering[]
    Ordering.values()
    Returns an array containing the constants of this enum type, in the order they are declared.
    Methods in fj that return types with arguments of type Ordering
    Modifier and Type
    Method
    Description
    default F<A,Ordering>
    Ord.AltDefinition.compare(A a1)
     
    Ord.compare()
    First-class ordering.
    Ord.Definition.compare(A a)
     
    Method parameters in fj with type arguments of type Ordering
    Modifier and Type
    Method
    Description
    static <A> Ord<A>
    Ord.ord(F<A, F<A,Ordering>> f)
    Returns an order instance that uses the given equality test and ordering function.
    static <A> Ord<A>
    Ord.ord(F2<A,A,Ordering> f)
    Returns an order instance that uses the given equality test and ordering function.
  • Uses of Ordering in fj.data

    Fields in fj.data with type parameters of type Ordering
    Modifier and Type
    Field
    Description
    static final Enumerator<Ordering>
    An enumerator for Ordering.
    Method parameters in fj.data with type arguments of type Ordering
    Modifier and Type
    Method
    Description
    final List<A>
    List.insertBy(F<A, F<A,Ordering>> f, A x)
    Inserts the given element before the first element that is greater than or equal to it according to the given ordering.