/** * 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); }
public static <A> Show<A> anyShowNullable() { F<A, Stream<Character>> f = new F<A, Stream<Character>>() { public Stream<Character> f(final A a) { return Stream.fromString((a == null) ? "null" : a.toString()); } }; return Show.show(f); }
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') + ')' : ""); } }); }
public String toString() { return Show.fingerTreeShow(Show.<V>anyShow(), Show.<A>anyShow()).showS(this); }
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); }); }
@Override public String toString() { return Show.treeMapShow(Show.<K>anyShow(), Show.<V>anyShow()).showS(this); }
@Override public final String toString() { return Show.resultShow(Show.<A>anyShow(), Show.<I>anyShow()).showS(this); }
@Override public String toString() { return Show.hamtNodeShow(Show.<K>anyShow(), Show.<V>anyShow()).showS(this); }