public static final Show<Arg<?>> argShowNullable() { return showS(new F<Arg<?>, String>() { public String f(final Arg<?> arg) { return anyShowNullable().showS(arg.value()) + (arg.shrinks() > 0 ? " (" + arg.shrinks() + " shrink" + (arg.shrinks() == 1 ? "" : 's') + ')' : ""); } }); }
@Override public String toString() { return Show.naturalShow.showS(this); } }
@Override public String toString() { return Show.bitSetShow.showS(this); }
/** * Prints the given argument to the standard error stream with a new line. * * @param a The argument to print. */ public void printlnE(final A a) { System.err.println(showS(a)); }
/** * Provides a show instance that draws a 2-dimensional representation of a tree. * * @param s A show instance for the elements of the tree. * @return a show instance that draws a 2-dimensional representation of a tree. */ public static <A> Show<Tree<A>> show2D(final Show<A> s) { return Show.showS(tree -> tree.draw(s)); }
@Override public String toString() { return Show.treeShow(Show.<A>anyShow()).showS(this); }
/** * Obtain a string representation of this list using the toString implementations of the members. Uses Show.listShow with F2 argument and may * not be very performant. * * @return a String representation of the list */ @Override public final String toString() { return Show.listShow(Show.<A>anyShow()).showS(this); }
@Deprecated @Override public final String toString() { return Eithers.<A, B>eitherShow(Show.anyShow(), Show.anyShow()).showS(this); } }
@Override public String toString() { return Show.treeMapShow(Show.<K>anyShow(), Show.<V>anyShow()).showS(this); }
public String toString() { return Show.digitShow(Show.<V>anyShow(), Show.<A>anyShow()).showS(this); } public Stream<A> toStream() {
@Override public String toString() { return Show.hamtShow(Show.<K>anyShow(), Show.<V>anyShow()).showS(this); }
@Override public final String toString() { return Show.p2Show(Show.<A>anyShow(), Show.<B>anyShow()).showS(this); }
public static <V, A> Show<fj.data.fingertrees.Digit<V, A>> digitShow(final Show<V> sv, final Show<A> sa) { return show(d -> { String s = d.match( o -> "One(" + o.measure() + " -> " + o.value() + ")", two -> "Two(" + two.measure() + " -> " + v2Show(sa).showS(two.values()) + ")", three -> "Three(" + three.measure() + " -> " + v3Show(sa).showS(three.values()) + ")", four -> "Four(" + four.measure() + " -> " + v4Show(sa).showS(four.values()) + ")" ); return Stream.fromString(s); }); }
public static <V, A> Show<fj.data.fingertrees.Node<V, A>> nodeShow(final Show<V> sv, final Show<A> sa) { return show(n -> { final String s = n.match( n2 -> "Node2(" + n2.measure() + " -> " + v2Show(sa).showS(n2.toVector()) + ")", n3 -> "Node3(" + n3.measure() + " -> " + v3Show(sa).showS(n3.toVector()) + ")"); return Stream.fromString(s); }); }
public String f(final Arg<?> arg) { return anyShowNullable().showS(arg.value()) + (arg.shrinks() > 0 ? " (" + arg.shrinks() + " shrink" + (arg.shrinks() == 1 ? "" : 's') + ')' : ""); } });
@Override public final String toString() { return Show.p4Show(Show.<A>anyShow(), Show.<B>anyShow(), Show.<C>anyShow(), Show.<D>anyShow()).showS(this); }
@Override public final String toString() { return Show.p5Show(Show.<A>anyShow(), Show.<B>anyShow(), Show.<C>anyShow(), Show.<D>anyShow(), Show.<E>anyShow()).showS(this); }
@Override public final String toString() { return Show.p7Show(Show.<A>anyShow(), Show.<B>anyShow(), Show.<C>anyShow(), Show.<D>anyShow(), Show.<E>anyShow(), Show.<F>anyShow(), Show.<G>anyShow()).showS(this); }