Uses of Class
fj.Unit
Packages that use Unit
Package
Description
Types that set the premise for the existence of Functional Java.
Abstractions for JDBC connections.
Parallelization strategies.
Common algebraic data types.
Type-safe, extensible, heterogeneous lists
A prelude of commonly used first-class functions
Parser combinators.
-
Uses of Unit in fj
Modifier and TypeFieldDescriptionMonoid.unitMonoid
A monoid for the Unit value.Ord.unitOrd
An order instance for theUnit
type.Semigroup.unitSemigroup
A semigroup for the Unit value.Modifier and TypeMethodDescriptionPrints the given argument to the standard output stream.Prints the given argument to the standard output stream with a new line.static Unit
Unit.unit()
The only value of the unit type.Modifier and TypeMethodDescriptionReturns a function for the given effect.static <A,
Z extends Exception>
P1<Validation<Z, Unit>> TryEffect.f
(TryEffect0<Z> t) static <A,
Z extends Exception>
F<A, Validation<Z, Unit>> TryEffect.f
(TryEffect1<A, Z> t) static <A,
B, Z extends Exception>
F2<A, B, Validation<Z, Unit>> TryEffect.f
(TryEffect2<A, B, Z> t) static <A,
B, C, Z extends Exception>
F3<A, B, C, Validation<Z, Unit>> TryEffect.f
(TryEffect3<A, B, C, Z> t) static <A,
B, C, D, Z extends Exception>
F4<A, B, C, D, Validation<Z, Unit>> TryEffect.f
(TryEffect4<A, B, C, D, Z> t) static <A,
B, C, D, E, Z extends Exception>
F5<A, B, C, D, E, Validation<Z, Unit>> TryEffect.f
(TryEffect5<A, B, C, D, E, Z> t) static <A,
B, C, D, E, $F, Z extends Exception>
F6<A, B, C, D, E, $F, Validation<Z, Unit>> TryEffect.f
(TryEffect6<A, B, C, D, E, $F, Z> t) static <A,
B, C, D, E, $F, G, Z extends Exception>
F7<A, B, C, D, E, $F, G, Validation<Z, Unit>> TryEffect.f
(TryEffect7<A, B, C, D, E, $F, G, Z> t) static <A,
B, C, D, E, $F, G, H, Z extends Exception>
F8<A, B, C, D, E, $F, G, H, Validation<Z, Unit>> TryEffect.f
(TryEffect8<A, B, C, D, E, $F, G, H, Z> t) Modifier and TypeMethodDescriptionstatic <A> Effect1
<A> static <A> P1
<A> static <A,
B> P2 <A, B> static <A,
B, C> P3 <A, B, C> static <A,
B, C, D>
P4<A, B, C, D> static <A,
B, C, D, E>
P5<A, B, C, D, E> static <A,
B, C, D, E, F$>
P6<A, B, C, D, E, F$> static <A,
B, C, D, E, F$, G>
P7<A, B, C, D, E, F$, G> P.lazy
(F<Unit, A> fa, F<Unit, B> fb, F<Unit, C> fc, F<Unit, D> fd, F<Unit, E> fe, F<Unit, F$> ff, F<Unit, G> fg) static <A,
B, C, D, E, F$, G, H>
P8<A, B, C, D, E, F$, G, H> P.lazy
(F<Unit, A> fa, F<Unit, B> fb, F<Unit, C> fc, F<Unit, D> fd, F<Unit, E> fe, F<Unit, F$> ff, F<Unit, G> fg, F<Unit, H> fh) Promotes this function to a concurrent function that returns a Promise of a value. -
Uses of Unit in fj.control.db
Fields in fj.control.db with type parameters of type UnitConstructor parameters in fj.control.db with type arguments of type Unit -
Uses of Unit in fj.control.parallel
Fields in fj.control.parallel with type parameters of type UnitMethods in fj.control.parallel that return types with arguments of type UnitModifier and TypeMethodDescriptionPass a message to this actor, applying its side-effect to the message.Method parameters in fj.control.parallel with type arguments of type UnitModifier and TypeMethodDescriptionstatic <A> Actor
<A> Creates a new Actor that uses the given parallelization strategy and has the given side-effect.static <A> Actor
<A> Creates a new Actor that uses the given parallelization strategy and has the given side-effect.static <A> Actor
<A> Creates a new Actor that uses the given parallelization strategy and has the given side-effect.Performs a right-fold reduction across a list in constant stack space.Performs a right-fold reduction across a Stream in constant stack space.static <A> Promise
<A> Turns a product of a promise into just a promise.private static <A> Promise
<A> static ParModule
Constructor method for ParModuleProvides a first-class unit function for promises.Transforms any function so that it returns a promise of a value instead of an actual value.static <A> Promise
<A> Promises to provide the value of the given 1-product, in the future.Provides a promise to call the given Callable in the future.static <T> Actor
<T> Actor.queueActor
(Strategy<Unit> s, Effect1<T> ea) An Actor equipped with a queue and which is guaranteed to process one message at a time.First-class version of the sequence function through a List.Turns a List of promises into a single promise of a List.Turns a Stream of promises into a single promise of a Stream.Transforms a product of a promise to a promise of a product.First-class version of the sequence function through a Stream.Constructor parameters in fj.control.parallel with type arguments of type Unit -
Uses of Unit in fj.data
Modifier and TypeMethodDescriptionPerforms a side-effect for each element of this array.Performs a side-effect for each element of this array.Execute a side-effect on this projection's value if it has one.Execute a side-effect on this projection's value if it has one.final Unit
Performs a side-effect for each element of this list.final Unit
Performs a side-effect for the value of this optional value.final Unit
Performs a side-effect for each element of this stream.Executes a side-effect on the failing value if there is one.final Unit
Executes a side-effect on the success value if there is one.Sets the element at the given index to the given value.Modifier and TypeMethodDescriptionIOFunctions.closeReader
(Reader r) Java8.Consumer_F()
Java8.Consumer_F
(Consumer<A> c) static <E> Iteratee.IterV
<E, Unit> Iteratee.IterV.drop
(int n) An iteratee that skips the first n elements of the inputConversions.Effect_IO()
Conversions.Effect_SafeIO()
Conversions.Effect_SafeIO
(Effect0 e) Conversions.Effect0_P1()
Conversions.Effect0_P1
(Effect0 e) Conversions.Effect1_F()
Conversions.F_SafeIO()
IO.interact
(F<LazyString, LazyString> f) IOFunctions.interact
(F<LazyString, LazyString> f) Read lines from stdin until condition is not met, transforming each line and printing the result to stdout.List.Optic.nil()
Nil prismOption.Optic.none()
None prismState.put
(S s) IOFunctions.stdoutPrint
(String s) IOFunctions.stdoutPrintln
(String s) static <E extends Exception>
P1<Validation<E, Unit>> Conversions.TryEffect_P
(TryEffect0<E> t) Modifier and TypeMethodDescriptionstatic <A> SafeIO
<A> Performs a side-effect for each element of this array.Performs a side-effect for each element of this array.Execute a side-effect on this projection's value if it has one.Execute a side-effect on this projection's value if it has one.void
final Unit
Performs a side-effect for each element of this list.final Unit
Performs a side-effect for the value of this optional value.final Unit
Performs a side-effect for each element of this stream.Executes a side-effect on the failing value if there is one.final Unit
Executes a side-effect on the success value if there is one.static <A> IO
<A> static <A> SafeIO
<A> Sort this stream according to the given ordering, using a parallel Quick Sort algorithm that uses the given parallelisation strategy. -
Uses of Unit in fj.data.hlist
Methods in fj.data.hlist that return types with arguments of type UnitModifier and TypeMethodDescriptionHList.Apply.comp()
A function application operator for function composition.static <E,
L extends HList<L>>
HList.Apply<Unit, P2<E, L>, HList.HCons<E, L>> HList.Apply.cons()
An operator for the construction of heterogeneous lists.abstract <E> HList.Apply
<Unit, P2<E, A>, HList.HCons<E, A>> HList.extender()
<X> HList.Apply
<Unit, P2<X, HList.HCons<E, L>>, HList.HCons<X, HList.HCons<E, L>>> HList.HCons.extender()
<E> HList.Apply
<Unit, P2<E, HList.HNil>, HList.HCons<E, HList.HNil>> HList.HNil.extender()
static <X> HList.Apply
<Unit, X, X> HList.Apply.id()
Identity operator -
Uses of Unit in fj.function
Methods in fj.function that return types with arguments of type UnitModifier and TypeMethodDescriptionEffect1.toF()
Effect0.toF0()
Effect2.toF2()
Effect0.toP1()
TryEffect0.toP1()
Effect0.toTry0()
TryEffect0.toTry0()
Effect1.toTry1()
Method parameters in fj.function with type arguments of type Unit -
Uses of Unit in fj.parser