Uses of Class
fj.Ord
-
Packages that use Ord Package Description fj Types that set the premise for the existence of Functional Java.fj.data Common algebraic data types.fj.data.hamt -
-
Uses of Ord in fj
Fields in fj declared as Ord Modifier and Type Field Description static Ord<java.math.BigDecimal>Ord. bigdecimalOrdAn order instance for theBigDecimaltype.static Ord<java.math.BigInteger>Ord. bigintOrdAn order instance for theBigIntegertype.static Ord<java.lang.Boolean>Ord. booleanOrdAn order instance for thebooleantype.static Ord<java.lang.Byte>Ord. byteOrdAn order instance for thebytetype.static Ord<java.lang.Character>Ord. charOrdAn order instance for thechartype.static Ord<java.lang.Double>Ord. doubleOrdAn order instance for thedoubletype.static Ord<java.lang.Float>Ord. floatOrdAn order instance for thefloattype.static Ord<java.lang.Integer>Ord. intOrdAn order instance for theinttype.static Ord<java.lang.Long>Ord. longOrdAn order instance for thelongtype.static Ord<Natural>Ord. naturalOrdAn order instance for theNaturaltype.static Ord<Ordering>Ord. orderingOrdAn order instance for theOrderingtype.static Ord<java.lang.Short>Ord. shortOrdAn order instance for theshorttype.static Ord<java.lang.StringBuffer>Ord. stringBufferOrdAn order instance for theStringBuffertype.static Ord<java.lang.StringBuilder>Ord. stringBuilderOrdAn order instance for theStringBuffertype.static Ord<java.lang.String>Ord. stringOrdAn order instance for theStringtype.static Ord<Unit>Ord. unitOrdAn order instance for theUnittype.Methods in fj that return Ord Modifier and Type Method Description static <A> Ord<Array<A>>Ord. arrayOrd(Ord<A> oa)An order instance for theArraytype.static <A extends java.lang.Comparable<A>>
Ord<A>Ord. comparableOrd()An order instance for theComparableinterface.static <A,B>
Ord<A>Ord. contramap(F<A,B> f, Ord<B> ord)Static version ofcontramap(F)<B> Ord<B>Ord. contramap(F<B,A> f)Maps the given function across this ord as a contra-variant functor.static <A,B>
Ord<Either<A,B>>Ord. eitherOrd(Ord<A> oa, Ord<B> ob)An order instance for theEithertype.static <A> Ord<List<A>>Ord. listOrd(Ord<A> oa)An order instance for theListtype.static <A> Ord<NonEmptyList<A>>Ord. nonEmptyListOrd(Ord<A> oa)An order instance for theNonEmptyListtype.static <A> Ord<Option<A>>Ord. optionOrd(Ord<A> oa)An order instance for theOptiontype.default Ord<A>Ord.Definition. ord()Build an ord instance from this definition.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.static <A> Ord<A>Ord. ordDef(Ord.AltDefinition<A> def)Returns an order instance that uses the given minimal equality test and ordering definition.static <A> Ord<A>Ord. ordDef(Ord.Definition<A> def)Returns an order instance that uses the given minimal equality test and ordering definition.static <A> Ord<P1<A>>Ord. p1Ord(Ord<A> oa)An order instance for a product-1.static <A,B>
Ord<P2<A,B>>Ord. p2Ord(Ord<A> oa, Ord<B> ob)An order instance for a product-2, with the first factor considered most significant.static <A,B>
Ord<P2<A,B>>Ord. p2Ord1(Ord<A> oa)static <A,B>
Ord<P2<A,B>>Ord. p2Ord2(Ord<B> ob)static <A,B,C>
Ord<P3<A,B,C>>Ord. p3Ord(Ord<A> oa, Ord<B> ob, Ord<C> oc)An order instance for a product-3, with the first factor considered most significant.Ord<A>Ord. reverse()static <A> Ord<Seq<A>>Ord. seqOrd(Ord<A> ord)Return a seq ord using the given value ord.static <A> Ord<Set<A>>Ord. setOrd(Ord<A> oa)An order instance for theSettype.static <A> Ord<Stream<A>>Ord. streamOrd(Ord<A> oa)An order instance for theStreamtype.static <A,B>
Ord<Validation<A,B>>Ord. validationOrd(Ord<A> oa, Ord<B> ob)An order instance for theValidationtype.Methods in fj with parameters of type Ord Modifier and Type Method Description static <A> Ord<Array<A>>Ord. arrayOrd(Ord<A> oa)An order instance for theArraytype.static <A,B>
Ord<A>Ord. contramap(F<A,B> f, Ord<B> ord)Static version ofcontramap(F)static <A,B>
Ord<Either<A,B>>Ord. eitherOrd(Ord<A> oa, Ord<B> ob)An order instance for theEithertype.static <A> Ord<List<A>>Ord. listOrd(Ord<A> oa)An order instance for theListtype.default F<Set<A>,Set<B>>F. mapSet(Ord<B> o)Promotes this function to map over a Set.static <A> Ord<NonEmptyList<A>>Ord. nonEmptyListOrd(Ord<A> oa)An order instance for theNonEmptyListtype.static <A,B>
Ord.Definition<A>Ord. on(F<A,B> f, Ord<B> ord)Begin definition of an ord instance.static <A> Ord<Option<A>>Ord. optionOrd(Ord<A> oa)An order instance for theOptiontype.static <A> Ord<P1<A>>Ord. p1Ord(Ord<A> oa)An order instance for a product-1.static <A,B>
Ord<P2<A,B>>Ord. p2Ord(Ord<A> oa, Ord<B> ob)An order instance for a product-2, with the first factor considered most significant.static <A,B>
Ord<P2<A,B>>Ord. p2Ord1(Ord<A> oa)static <A,B>
Ord<P2<A,B>>Ord. p2Ord2(Ord<B> ob)static <A,B,C>
Ord<P3<A,B,C>>Ord. p3Ord(Ord<A> oa, Ord<B> ob, Ord<C> oc)An order instance for a product-3, with the first factor considered most significant.static <A> Ord<Seq<A>>Ord. seqOrd(Ord<A> ord)Return a seq ord using the given value ord.default F<A,Set<B>>F. setK(Ord<B> o)Promotes this function to return its value in a Set.default F2<Set<A>,Set<B>,Set<C>>F2. setM(Ord<C> o)Promotes this function to a function on Sets.static <A> Monoid<Set<A>>Monoid. setMonoid(Ord<A> o)A union monoid for sets.static <A> Ord<Set<A>>Ord. setOrd(Ord<A> oa)An order instance for theSettype.static <A> Ord<Stream<A>>Ord. streamOrd(Ord<A> oa)An order instance for theStreamtype.default <B> Ord.Definition<A>Ord.Definition. then(F<A,B> f, Ord<B> bOrd)Refine this ord definition: compares using self and if objects are equal compares using givenOrd.static <A,B>
Ord<Validation<A,B>>Ord. validationOrd(Ord<A> oa, Ord<B> ob)An order instance for theValidationtype.default F2<Set<A>,Set<B>,Set<C>>F2. zipSetM(Ord<C> o)Promotes this function to zip two sets, applying the function lock-step over both sets. -
Uses of Ord in fj.data
Fields in fj.data declared as Ord Modifier and Type Field Description private Ord<A>Set. ordprivate Ord<A>Enumerator. orderMethods in fj.data that return Ord Modifier and Type Method Description Ord<A>Set. ord()Returns the order of this Set.private static <K,V>
Ord<P2<K,V>>TreeMap. ord(Ord<K> keyOrd)static <A> Ord<Zipper<A>>Zipper. ord(Ord<A> o)An Ord instance for Zippers.Ord<A>Enumerator. order()Returns the ordering for the enumerator.Methods in fj.data that return types with arguments of type Ord Modifier and Type Method Description <B> F2<Ord<B>,F<A,Set<B>>,Set<Option<B>>>Option. traverseSet()Methods in fj.data with parameters of type Ord Modifier and Type Method Description static <A> Set<A>Set. arraySet(Ord<A> o, A... as)Return the elements of the given iterator as a set.static <K,V>
TreeMap<K,V>TreeMap. arrayTreeMap(Ord<K> keyOrd, P2<K,V>... ps)Constructs a tree map from the given elements.private static <A> Set<A>Set. balance(Ord<A> ord, Set.Color c, Set<A> l, A h, Set<A> r)<B> Set<B>Set. bind(Ord<B> o, F<A,Set<B>> f)Binds the given function across this set.static <A> Set<A>Set. empty(Ord<A> ord)The empty set.static <K,V>
TreeMap<K,V>TreeMap. empty(Ord<K> keyOrd)Constructs an empty tree map.static <A> Enumerator<A>Enumerator. enumerator(F<A,Option<A>> successor, F<A,Option<A>> predecessor, Option<A> max, Option<A> min, Ord<A> order)Construct an enumerator.static <A> Enumerator<A>Enumerator. enumerator(F<A,Option<A>> successor, F<A,Option<A>> predecessor, Option<A> max, Option<A> min, Ord<A> order, F<A,F<java.lang.Long,Option<A>>> plus)Construct an enumerator.private static <A> F<Stream<A>,Promise<Stream<A>>>Stream. flt(Ord<A> o, Strategy<Unit> s, A x, F<java.lang.Boolean,java.lang.Boolean> f)static <K,V>
TreeMap<K,V>TreeMap. fromMutableMap(Ord<K> ord, java.util.Map<K,V> m)An immutable projection of the given mutable map.<B,C,D>
TreeMap<B,D>List. groupBy(F<A,B> keyFunction, F<A,C> valueFunction, D groupingIdentity, F2<C,D,D> groupingAcc, Ord<B> keyOrd)Groups the elements of this list by a given keyFunction, applies the valueFunction and accumulates the mapped values with the given grouping accumulator function on the grouping identity.<B,C>
TreeMap<B,C>List. groupBy(F<A,B> keyFunction, F<A,C> valueFunction, Monoid<C> monoid, Ord<B> keyOrd)Groups the elements of this list by a given keyFunction into aTreeMapand transforms the matching elements with the given valueFunction.<B,C>
TreeMap<B,List<C>>List. groupBy(F<A,B> keyFunction, F<A,C> valueFunction, Ord<B> keyOrd)Groups the elements of this list by a given keyFunction into aTreeMapand transforms the matching elements with the given valueFunction.<B> TreeMap<B,List<A>>List. groupBy(F<A,B> keyFunction, Ord<B> keyOrd)Groups the elements of this list by a given keyFunction into aTreeMap.booleanPriorityQueue. isEqual(Ord<K> ok, K k)booleanPriorityQueue. isGreaterThan(Ord<K> ok, K k)booleanPriorityQueue. isLessThan(Ord<K> ok, K k)Does the top of the queue have lower priority than k?static <A> Set<A>Set. iterableSet(Ord<A> o, java.lang.Iterable<A> as)Return the elements of the given iterable as a set.static <K,V>
TreeMap<K,V>TreeMap. iterableTreeMap(Ord<K> keyOrd, java.lang.Iterable<P2<K,V>> it)Constructs a tree map from the given elements.static <A> Set<A>Set. iteratorSet(Ord<A> o, java.util.Iterator<A> as)Return the elements of the given iterator as a set.static <K,V>
TreeMap<K,V>TreeMap. iteratorTreeMap(Ord<K> keyOrd, java.util.Iterator<P2<K,V>> it)Constructs a tree map from the given elements.static <A> Set<A>Set. join(Ord<A> o, Set<Set<A>> s)Join a set of sets into a single set.<B> Set<B>Set. map(Ord<B> o, F<A,B> f)Maps the given function across this set.AList. maximum(Ord<A> o)Returns the maximum element in this list according to the given ordering.ANonEmptyList. maximum(Ord<A> o)Returns the maximum element in this non empty list according to the given ordering.Option<A>List. maximumOption(Ord<A> o)Returns the maximum element in this list according to the given ordering.private static <A> Stream<A>Stream. merge(Ord<A> o, Stream<A> xs, Stream<A> ys)private static <A> Stream<Stream<A>>Stream. mergePairs(Ord<A> o, Stream<Stream<A>> s)private static <A> Stream<A>Stream. mergesort(Ord<A> o, Stream<Stream<A>> s)AList. minimum(Ord<A> o)Returns the minimum element in this list according to the given ordering.ANonEmptyList. minimum(Ord<A> o)Returns the minimum element in this non empty list according to the given ordering.Option<A>List. minimumOption(Ord<A> o)Returns the minimum element in this list according to the given ordering.AList. mode(Ord<A> o)Returns the most common element in this list.List<A>List. nub(Ord<A> o)Removes duplicates according to the given ordering.private static <K,V>
Ord<P2<K,V>>TreeMap. ord(Ord<K> keyOrd)static <A> Ord<Zipper<A>>Zipper. ord(Ord<A> o)An Ord instance for Zippers.private Promise<Stream<A>>Stream. qs(Ord<A> o, Strategy<Unit> s)private static <A> F<Stream<A>,Promise<Stream<A>>>Stream. qs_(Ord<A> o, Strategy<Unit> s)static <B> Set<List<B>>List. sequenceSet(Ord<B> ord, List<Set<B>> list)Sequence the given list and collect the output as a set; use the given ord to order the set.static <B> Set<Option<B>>Option. sequenceSet(Ord<B> ord, Option<Set<B>> option)Sequence the given option and collect the output as a set; use the given ord to order the set.static <B> Set<Seq<B>>Seq. sequenceSet(Ord<B> ord, Seq<Set<B>> seq)Sequence the given seq and collect the output as a set; use the given ord to order the set.static <B> Set<Stream<B>>Stream. sequenceSet(Ord<B> ord, Stream<Set<B>> stream)Sequence the given stream and collect the output as a set; use the given ord to order the set.static <E,C>
Set<Validation<E,C>>Validation. sequenceSet(Ord<E> ordE, Ord<C> ordC, Validation<E,Set<C>> validation)Sequence the given validation and collect the output as a set.static <A> Set<A>Set. set(Ord<A> o, A... as)Constructs a set from the given elements.static <K,V>
TreeMap<K,V>TreeMap. setTreeMap(Ord<K> ord, Set<P2<K,Option<V>>> s)Constructs a TreeMap from the given set.static <A> Set<A>Set. single(Ord<A> o, A a)Returns a set with a single element.List<A>List. sort(Ord<A> o)Sorts this list using the given order over elements using a merge sort algorithm.NonEmptyList<A>NonEmptyList. sort(Ord<A> o)Sorts this non empty list using the given order over elements using a merge sort algorithm.Stream<A>Stream. sort(Ord<A> o)Sort this stream according to the given ordering.Stream<A>Stream. sort(Ord<A> o, Strategy<Unit> s)Sort this stream according to the given ordering, using a parallel Quick Sort algorithm that uses the given parallelisation strategy.P3<Set<V>,Option<V>,Set<V>>TreeMap. split(Ord<V> ord, K k)Splits this TreeMap at the given key.private static <A> Set.Tree<A>Set. tr(Ord<A> o, Set<A> a, A x, Set<A> b, A y, Set<A> c, A z, Set<A> d)<B> Set<List<B>>List. traverseSet(Ord<B> ord, F<A,Set<B>> f)Traverse this list with the given function and collect the output as a set; use the given ord to order the set.<B> Set<Option<B>>Option. traverseSet(Ord<B> ord, F<A,Set<B>> f)Traverse this option with the given function and collect the output as a set; use the given ord to order the set.<B> Set<Seq<B>>Seq. traverseSet(Ord<B> ord, F<A,Set<B>> f)Traverse this seq with the given function and collect the output as a set; use the given ord to order the set.<B> Set<Stream<B>>Stream. traverseSet(Ord<B> ord, F<A,Set<B>> f)Traverse this stream with the given function and collect the output as a set; use the given ord to order the set.<C> Set<Validation<E,C>>Validation. traverseSet(Ord<E> ordE, Ord<C> ordC, F<T,Set<C>> f)Traverse this validation with the given function and collect the output as a set; use the given success and failure value ords to order the set.static <K,V>
TreeMap<K,V>TreeMap. treeMap(Ord<K> keyOrd, P2<K,V>... p2s)Constructs a tree map from the given elements.Constructors in fj.data with parameters of type Ord Constructor Description Empty(Ord<A> ord)Enumerator(F<A,Option<A>> successor, F<A,Option<A>> predecessor, Option<A> max, Option<A> min, Ord<A> order, F<A,F<java.lang.Long,Option<A>>> plus)Set(Ord<A> ord)Tree(Ord<A> ord, Set.Color c, Set<A> a, A x, Set<A> b) -
Uses of Ord in fj.data.hamt
Methods in fj.data.hamt with parameters of type Ord Modifier and Type Method Description List<P2<K,V>>HashArrayMappedTrie. toList(Ord<K> o)Returns the list of key-value pairs, ordered by key.
-