|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfj.pre.Show<A>
public final class Show<A>
Renders an object for display.
Field Summary | |
---|---|
static Show<BigDecimal> |
bigdecimalShow
A show instance for the BigDecimal type. |
static Show<BigInteger> |
bigintShow
A show instance for the BigInteger type. |
static Show<Boolean> |
booleanShow
A show instance for the boolean type. |
static Show<Byte> |
byteShow
A show instance for the byte type. |
static Show<Character> |
charShow
A show instance for the char type. |
static Show<Double> |
doubleShow
A show instance for the double type. |
static Show<Float> |
floatShow
A show instance for the float type. |
static Show<HList.HNil> |
HListShow
A show instance for the empty heterogeneous Stream. |
static Show<Integer> |
intShow
A show instance for the int type. |
static Show<LazyString> |
lazyStringShow
A show instance for lazy strings. |
static Show<Long> |
longShow
A show instance for the long type. |
static Show<Natural> |
naturalShow
A show instance for natural numbers. |
static Show<Short> |
shortShow
A show instance for the short type. |
static Show<StringBuffer> |
stringBufferShow
A show instance for the StringBuffer type. |
static Show<StringBuilder> |
stringBuilderShow
A show instance for the StringBuilder type. |
static Show<String> |
stringShow
A show instance for the String type. |
Method Summary | ||
---|---|---|
static
|
anyShow()
Returns a show instance that uses Object.toString() to perform the display rendering. |
|
static
|
arrayShow(Show<A> sa)
A show instance for the Array type. |
|
static
|
classShow()
A show instance for the Class type. |
|
|
comap(F<B,A> f)
Maps the given function across this show as a contra-variant functor. |
|
static
|
eitherShow(Show<A> sa,
Show<B> sb)
A show instance for the Either type. |
|
static
|
HListShow(Show<E> e,
Show<L> l)
A show instance for heterogeneous Streams. |
|
static
|
listShow(Show<A> sa)
A show instance for the Stream type. |
|
static
|
nonEmptyListShow(Show<A> sa)
A show instance for the NonEmptyList type. |
|
static
|
optionShow(Show<A> sa)
A show instance for the Option type. |
|
static
|
p1Show(Show<A> sa)
A show instance for the tuple-1 type. |
|
static
|
p2Show(Show<A> sa,
Show<B> sb)
A show instance for the tuple-2 type. |
|
static
|
p3Show(Show<A> sa,
Show<B> sb,
Show<C> sc)
A show instance for the tuple-3 type. |
|
static
|
p4Show(Show<A> sa,
Show<B> sb,
Show<C> sc,
Show<D> sd)
A show instance for the tuple-4 type. |
|
static
|
p5Show(Show<A> sa,
Show<B> sb,
Show<C> sc,
Show<D> sd,
Show<E> se)
A show instance for the tuple-5 type. |
|
static
|
p6Show(Show<A> sa,
Show<B> sb,
Show<C> sc,
Show<D> sd,
Show<E> se,
Show<F$> sf)
A show instance for the tuple-6 type. |
|
static
|
p7Show(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 the tuple-7 type. |
|
static
|
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 the tuple-8 type. |
|
Unit |
print(A a)
Prints the given argument to the standard output stream. |
|
Unit |
println(A a)
Prints the given argument to the standard output stream with a new line. |
|
void |
printlnE(A a)
Prints the given argument to the standard error stream with a new line. |
|
F<A,Stream<Character>> |
show_()
Returns the transformation equivalent to this show. |
|
Stream<Character> |
show(A a)
Returns the display rendering of the given argument. |
|
static
|
show(F<A,Stream<Character>> f)
Returns a show instance using the given function. |
|
List<Character> |
showl(A a)
Returns the display rendering of the given argument. |
|
F<A,String> |
showS_()
Returns the transformation equivalent to this show. |
|
String |
showS(A a)
Returns the display rendering of the given argument as a String . |
|
static
|
showS(F<A,String> f)
Returns a show instance using the given function. |
|
static
|
streamShow(Show<A> sa)
A show instance for the Stream type. |
|
static
|
treeShow(Show<A> sa)
A show instance for the Tree type. |
|
static
|
unlineShow(Show<A> sa)
A show instance for streams that splits into lines. |
|
static
|
v2Show(Show<A> ea)
A show instance for a vector-2. |
|
static
|
v3Show(Show<A> ea)
A show instance for a vector-3. |
|
static
|
v4Show(Show<A> ea)
A show instance for a vector-4. |
|
static
|
v5Show(Show<A> ea)
A show instance for a vector-5. |
|
static
|
v6Show(Show<A> ea)
A show instance for a vector-6. |
|
static
|
v7Show(Show<A> ea)
A show instance for a vector-7. |
|
static
|
v8Show(Show<A> ea)
A show instance for a vector-8. |
|
static
|
validationShow(Show<A> sa,
Show<B> sb)
A show instance for the Validation type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Show<Boolean> booleanShow
boolean
type.
public static final Show<Byte> byteShow
byte
type.
public static final Show<Character> charShow
char
type.
public static final Show<Double> doubleShow
double
type.
public static final Show<Float> floatShow
float
type.
public static final Show<Integer> intShow
int
type.
public static final Show<BigInteger> bigintShow
BigInteger
type.
public static final Show<BigDecimal> bigdecimalShow
BigDecimal
type.
public static final Show<Long> longShow
long
type.
public static final Show<Short> shortShow
short
type.
public static final Show<String> stringShow
String
type.
public static final Show<StringBuffer> stringBufferShow
StringBuffer
type.
public static final Show<StringBuilder> stringBuilderShow
StringBuilder
type.
public static final Show<Natural> naturalShow
public static final Show<LazyString> lazyStringShow
public static final Show<HList.HNil> HListShow
Method Detail |
---|
public <B> Show<B> comap(F<B,A> f)
f
- The function to map.
public Stream<Character> show(A a)
a
- The argument to display.
public List<Character> showl(A a)
a
- The argument to display.
public String showS(A a)
String
.
a
- The argument to display.
String
.public F<A,String> showS_()
public F<A,Stream<Character>> show_()
public Unit println(A a)
a
- The argument to print.
public Unit print(A a)
a
- The argument to print.
public void printlnE(A a)
a
- The argument to print.public static <A> Show<A> show(F<A,Stream<Character>> f)
f
- The function to use for the returned show instance.
public static <A> Show<A> showS(F<A,String> f)
f
- The function to use for the returned show instance.
public static <A> Show<A> anyShow()
Object.toString()
to perform the display rendering.
Object.toString()
to perform the display rendering.public static <A> Show<Option<A>> optionShow(Show<A> sa)
Option
type.
sa
- Show for the element of the option.
Option
type.public static <A,B> Show<Either<A,B>> eitherShow(Show<A> sa, Show<B> sb)
Either
type.
sa
- Show for the left side of the Either
.sb
- Show for the right side of the Either
.
Either
type.public static <A,B> Show<Validation<A,B>> validationShow(Show<A> sa, Show<B> sb)
Validation
type.
sa
- Show for the fail side of the Validation
.sb
- Show for the success side of the Validation
.
Validation
type.public static <A> Show<List<A>> listShow(Show<A> sa)
Stream
type.
sa
- Show for the elements of the Stream.
Stream
type.public static <A> Show<NonEmptyList<A>> nonEmptyListShow(Show<A> sa)
NonEmptyList
type.
sa
- Show for the elements of the non-empty Stream.
NonEmptyList
type.public static <A> Show<Tree<A>> treeShow(Show<A> sa)
Tree
type.
sa
- Show for the elements of the tree.
Tree
type.public static <A> Show<Stream<A>> streamShow(Show<A> sa)
Stream
type.
sa
- Show for the elements of the stream.
Stream
type.public static <A> Show<Array<A>> arrayShow(Show<A> sa)
Array
type.
sa
- Show for the elements of the array.
Array
type.public static <A> Show<Class<A>> classShow()
Class
type.
Class
type.public static <A> Show<P1<A>> p1Show(Show<A> sa)
tuple-1
type.
sa
- Show for the first element of the tuple.
tuple-1
type.public static <A,B> Show<P2<A,B>> p2Show(Show<A> sa, Show<B> sb)
tuple-2
type.
sa
- Show for the first element of the tuple.sb
- Show for the second element of the tuple.
tuple-2
type.public static <A,B,C> Show<P3<A,B,C>> p3Show(Show<A> sa, Show<B> sb, Show<C> sc)
tuple-3
type.
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.
tuple-3
type.public static <A,B,C,D> Show<P4<A,B,C,D>> p4Show(Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd)
tuple-4
type.
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.
tuple-4
type.public static <A,B,C,D,E> Show<P5<A,B,C,D,E>> p5Show(Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se)
tuple-5
type.
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.
tuple-5
type.public static <A,B,C,D,E,F$> Show<P6<A,B,C,D,E,F$>> p6Show(Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se, Show<F$> sf)
tuple-6
type.
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.
tuple-6
type.public static <A,B,C,D,E,F$,G> Show<P7<A,B,C,D,E,F$,G>> p7Show(Show<A> sa, Show<B> sb, Show<C> sc, Show<D> sd, Show<E> se, Show<F$> sf, Show<G> sg)
tuple-7
type.
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.
tuple-7
type.public static <A,B,C,D,E,F$,G,H> Show<P8<A,B,C,D,E,F$,G,H>> 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)
tuple-8
type.
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.
tuple-8
type.public static <A> Show<V2<A>> v2Show(Show<A> ea)
ea
- A show for the elements of the vector.
public static <A> Show<V3<A>> v3Show(Show<A> ea)
ea
- A show for the elements of the vector.
public static <A> Show<V4<A>> v4Show(Show<A> ea)
ea
- A show for the elements of the vector.
public static <A> Show<V5<A>> v5Show(Show<A> ea)
ea
- A show for the elements of the vector.
public static <A> Show<V6<A>> v6Show(Show<A> ea)
ea
- A show for the elements of the vector.
public static <A> Show<V7<A>> v7Show(Show<A> ea)
ea
- A show for the elements of the vector.
public static <A> Show<V8<A>> v8Show(Show<A> ea)
ea
- A show for the elements of the vector.
public static <A> Show<Stream<A>> unlineShow(Show<A> sa)
sa
- A show instance for the elements of a stream.
public static <E,L extends HList<L>> Show<HList.HCons<E,L>> HListShow(Show<E> e, Show<L> l)
e
- A show instance for the first element of the Stream.l
- A show instance for the rest of the Stream.
|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |