Back to project page TrackEveryPenny.
The source code is released under:
Apache License
If you think the Android project TrackEveryPenny listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ca.jbrains.upfp.view; // w ww . j a v a2s. com import ca.jbrains.upfp.view.CsvHeaderFormat; import ca.jbrains.upfp.view.SurroundWithQuotes; import com.google.common.base.Joiner; import com.google.common.collect.*; import java.util.ArrayList; // This has to match the implementation of // CsvFormat<Transaction> public class TransactionsCsvHeader implements CsvHeaderFormat { public static final ArrayList<String> COLUMN_NAMES = Lists .newArrayList("Date", "Category", "Amount"); @Override public String formatHeader() { return Joiner.on(",").join( Collections2.transform( COLUMN_NAMES, new SurroundWithQuotes())); } }