@Test public void pathForBarcode() { assertThat(SourcePersister.pathForBarcode(simple)).isEqualTo("typekey"); }
@Nonnull static String pathForBarcode(@Nonnull BarCode barCode) { return barCode.getType() + barCode.getKey(); }
SourcePersister implements Persister<BufferedSource, BarCode> { @Nonnull static String pathForBarcode(@Nonnull BarCode barCode) { return barCode.getType() + barCode.getKey(); } }
SourcePersister implements Persister<BufferedSource, BarCode> { @Nonnull static String pathForBarcode(@Nonnull BarCode barCode) { return barCode.getType() + barCode.getKey(); } @Inject  SourcePersister(FileSystem fileSystem); }
SourcePersister implements Persister<BufferedSource, BarCode> { @Nonnull static String pathForBarcode(@Nonnull BarCode barCode) { return barCode.getType() + barCode.getKey(); } @Inject  SourcePersister(FileSystem fileSystem); static SourcePersister create(FileSystem fileSystem); @Nonnull @Override Maybe<BufferedSource> read(@Nonnull final BarCode barCode); @Nonnull @Override Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data); }
SourcePersister implements Persister<BufferedSource, BarCode> { @Nonnull static String pathForBarcode(@Nonnull BarCode barCode) { return barCode.getType() + barCode.getKey(); } @Inject  SourcePersister(FileSystem fileSystem); static SourcePersister create(FileSystem fileSystem); @Nonnull @Override Maybe<BufferedSource> read(@Nonnull final BarCode barCode); @Nonnull @Override Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data);  }