Class Show<A>
java.lang.Object
fj.Show<A>
Renders an object for display.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Show<BigDecimal> A show instance for theBigDecimaltype.static final Show<BigInteger> A show instance for theBigIntegertype.A show instance for thebooleantype.A show instance for thebytetype.A show instance for thechartype.A show instance for thedoubletype.A show instance for thefloattype.static final Show<HList.HNil> A show instance for the empty heterogeneous Stream.A show instance for theinttype.static final Show<LazyString> A show instance for lazy strings.A show instance for thelongtype.A show instance for natural numbers.A show instance for theshorttype.static final Show<StringBuffer> A show instance for theStringBuffertype.static final Show<StringBuilder> A show instance for theStringBuildertype.A show instance for theStringtype. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A> Show<A> anyShow()Returns a show instance that usesObject.toString()to perform the display rendering.A show instance for theArraytype.A show instance for theClasstype.<B> Show<B> Maps the given function across this show as a contra-variant functor.either3Show(Show<A> sa, Show<B> sb, Show<C> sc) eitherShow(Show<A> sa, Show<B> sb) A show instance for theEithertype.static <V,A> Show <FingerTree<V, A>> fingerTreeShow(Show<V> sv, Show<A> sa) hamtNodeShow(Show<K> sk, Show<V> sv) static <K,V> Show <HashArrayMappedTrie<K, V>> static <E, L extends HList<L>>
Show<HList.HCons<E, L>> A show instance for heterogeneous Streams.A show instance for theStreamtype.static <A> Show<NonEmptyList<A>> nonEmptyListShow(Show<A> sa) A show instance for theNonEmptyListtype.optionShow(Show<A> sa) A show instance for theOptiontype.A show instance for thetuple-1type.p1ShowEager(Show<A> sa) p1ShowLazy(Show<A> sa) A show instance for thetuple-2type in the style of a mapping from A to B.A show instance for thetuple-2type.A show instance for thetuple-2type.A show instance for thetuple-3type.A show instance for thetuple-4type.A show instance for thetuple-5type.A show instance for thetuple-6type.A show instance for thetuple-7type.p8Show(Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se, Show<F$> sf, Show<G> sg, Show<H> sh) A show instance for thetuple-8type.Prints the given argument to the standard output stream.Prints the given argument to the standard output stream with a new line.voidPrints the given argument to the standard error stream with a new line.static <K,V> Show <PriorityQueue<K, V>> priorityQueueShow(Show<K> sk, Show<V> sv) resultShow(Show<A> sa, Show<I> si) A show instance for theResulttype.A show instance for theSettype.Returns the display rendering of the given argument.static <A> Show<A> Returns a show instance using the given function.show_()Returns the transformation equivalent to this show.Returns the display rendering of the given argument.Returns the display rendering of the given argument as aString.static <A> Show<A> Returns a show instance using the given function.showS_()Returns the transformation equivalent to this show.streamShow(Show<A> sa) A show instance for theStreamtype.streamShow(Show<A> sa, String start, String sep, String end) A show instance for theStreamtype.streamShow_(Show<A> sa, String start, String sep, String end) Returns the transformation equivalent for the stream show.treeMapShow(Show<K> sk, Show<V> sv) A show instance for theTreeMaptype.A show instance for theTreetype.unlineShow(Show<A> sa) A show instance for streams that splits into lines.A show instance for a vector-2.A show instance for a vector-3.A show instance for a vector-4.A show instance for a vector-5.A show instance for a vector-6.A show instance for a vector-7.A show instance for a vector-8.static <A,B> Show <Validation<A, B>> validationShow(Show<A> sa, Show<B> sb) A show instance for theValidationtype.
-
Field Details
-
f
-
booleanShow
-
byteShow
-
charShow
-
doubleShow
-
floatShow
-
intShow
-
bigintShow
A show instance for theBigIntegertype. -
bigdecimalShow
A show instance for theBigDecimaltype. -
longShow
-
shortShow
-
stringShow
-
stringBufferShow
A show instance for theStringBuffertype. -
stringBuilderShow
A show instance for theStringBuildertype. -
naturalShow
-
lazyStringShow
A show instance for lazy strings. -
HListShow
A show instance for the empty heterogeneous Stream. -
bitSetShow
-
-
Constructor Details
-
Show
-
-
Method Details
-
contramap
-
show
-
showl
-
showS
-
showS_
-
show_
-
println
-
print
-
printlnE
Prints the given argument to the standard error stream with a new line.- Parameters:
a- The argument to print.
-
show
-
showS
-
anyShow
Returns a show instance that usesObject.toString()to perform the display rendering.- Returns:
- A show instance that uses
Object.toString()to perform the display rendering.
-
optionShow
-
eitherShow
-
either3Show
-
resultShow
-
validationShow
A show instance for theValidationtype.- Parameters:
sa- Show for the fail side of theValidation.sb- Show for the success side of theValidation.- Returns:
- A show instance for the
Validationtype.
-
listShow
-
nonEmptyListShow
A show instance for theNonEmptyListtype.- Parameters:
sa- Show for the elements of the non-empty Stream.- Returns:
- A show instance for the
NonEmptyListtype.
-
treeShow
-
digitShow
-
nodeShow
-
fingerTreeShow
-
seqShow
-
setShow
-
treeMapShow
-
p2MapShow
-
p2Show
public static <A,B> Show<P2<A,B>> p2Show(Show<A> sa, Show<B> sb, String start, String sep, String end) A show instance for thetuple-2type.- Parameters:
sa- Show for the first element of the tuple.sb- Show for the second element of the tuple.start- Prefix string for the show.sep- Separator string between elements of the tuple.end- Suffix string for the show.- Returns:
- A show instance for the
tuple-2type.
-
streamShow
-
streamShow
-
streamShow_
-
arrayShow
-
classShow
-
p1Show
-
p1ShowLazy
-
p1ShowEager
-
p2Show
-
p3Show
-
p4Show
-
p5Show
public static <A,B, Show<P5<A,C, D, E> B, p5ShowC, D, E>> (Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se) A show instance for thetuple-5type.- Parameters:
sa- Show for the first element of the tuple.sb- Show for the second element of the tuple.sc- Show for the third element of the tuple.sd- Show for the fourth element of the tuple.se- Show for the fifth element of the tuple.- Returns:
- A show instance for the
tuple-5type.
-
p6Show
public static <A,B, Show<P6<A,C, D, E, F$> B, p6ShowC, D, E, F$>> (Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se, Show<F$> sf) A show instance for thetuple-6type.- Parameters:
sa- Show for the first element of the tuple.sb- Show for the second element of the tuple.sc- Show for the third element of the tuple.sd- Show for the fourth element of the tuple.se- Show for the fifth element of the tuple.sf- Show for the sixth element of the tuple.- Returns:
- A show instance for the
tuple-6type.
-
p7Show
public static <A,B, Show<P7<A,C, D, E, F$, G> B, p7ShowC, D, E, F$, G>> (Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se, Show<F$> sf, Show<G> sg) A show instance for thetuple-7type.- Parameters:
sa- Show for the first element of the tuple.sb- Show for the second element of the tuple.sc- Show for the third element of the tuple.sd- Show for the fourth element of the tuple.se- Show for the fifth element of the tuple.sf- Show for the sixth element of the tuple.sg- Show for the seventh element of the tuple.- Returns:
- A show instance for the
tuple-7type.
-
p8Show
public static <A,B, Show<P8<A,C, D, E, F$, G, H> B, p8ShowC, D, E, F$, G, H>> (Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se, Show<F$> sf, Show<G> sg, Show<H> sh) A show instance for thetuple-8type.- Parameters:
sa- Show for the first element of the tuple.sb- Show for the second element of the tuple.sc- Show for the third element of the tuple.sd- Show for the fourth element of the tuple.se- Show for the fifth element of the tuple.sf- Show for the sixth element of the tuple.sg- Show for the seventh element of the tuple.sh- Show for the eighth element of the tuple.- Returns:
- A show instance for the
tuple-8type.
-
priorityQueueShow
-
v2Show
-
v3Show
-
v4Show
-
v5Show
-
v6Show
-
v7Show
-
v8Show
-
unlineShow
-
HListShow
A show instance for heterogeneous Streams.- Parameters:
e- A show instance for the first element of the Stream.l- A show instance for the rest of the Stream.- Returns:
- a show instance for heterogeneous Streams.
-
hamtNodeShow
-
hamtShow
-