@Test public void ofTest() throws IOException { Tester.removeFile("print_stream_out.txt"); PrintStreamResult<Integer,String> sr = PrintStreamResult.of(null,new File("print_stream_out.txt")); sr.accept(ResultConsumerTest.getProductBin(1,"test")); sr.close(); }
public static <K,V> PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os, Function<V,String> toString) { return new PrintStreamResult<>(os,toString); }
PrintStreamResult implements ResultConsumer<K,V>, Closeable { public static <K,V> PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os, Function<V,String> toString) { return new PrintStreamResult<>(os,toString); } }
PrintStreamResult implements ResultConsumer<K,V>, Closeable { public static <K,V> PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os, Function<V,String> toString) { return new PrintStreamResult<>(os,toString); } PrintStreamResult(OutputStream os);  PrintStreamResult(OutputStream os, Function<V,String> toString); }
PrintStreamResult implements ResultConsumer<K,V>, Closeable { public static <K,V> PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os, Function<V,String> toString) { return new PrintStreamResult<>(os,toString); } PrintStreamResult(OutputStream os);  PrintStreamResult(OutputStream os, Function<V,String> toString); @Override void accept(ProductBin<K, V> bin); @Override void close(); PrintStream getPrintStream(); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os, Function<V,String> toString); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, File file, Function<V,String> toString); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, File file); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, String file, Function<V,String> toString); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, String file); }
PrintStreamResult implements ResultConsumer<K,V>, Closeable { public static <K,V> PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os, Function<V,String> toString) { return new PrintStreamResult<>(os,toString); } PrintStreamResult(OutputStream os);  PrintStreamResult(OutputStream os, Function<V,String> toString); @Override void accept(ProductBin<K, V> bin); @Override void close(); PrintStream getPrintStream(); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os, Function<V,String> toString); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, OutputStream os); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, File file, Function<V,String> toString); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, File file); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, String file, Function<V,String> toString); static PrintStreamResult<K,V> of(Conveyor<K, ?, V> conv, String file);  }