Android Open Source - TrackEveryPenny Transactions Csv Header

From Project

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.

Java Source Code

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 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");

  public String formatHeader() {
    return Joiner.on(",").join(
            COLUMN_NAMES, new SurroundWithQuotes()));

Java Source Code List