Back to project page DIYgenomics_Android.
The source code is released under:
/** * Copyright (C) 2010 DIYgenomics diygenomics.org * Copyright (C) 2010 Melanie Swan mxswan@gmail * Copyright (C) 2010 Michael Kolb * Copyright (C) 2010 Lawrence S. Wong * All rights reserved. * * M...
If you think the Android project DIYgenomics_Android 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 org.diygenomics.pg.utils; /*from w w w.j a v a 2 s.c o m*/ import java.util.ArrayList; public class Row { ArrayList<String> data; public Row() { data = new ArrayList<String>(); } public int getSize() { return data.size(); } public void add(String s) { data.add(s); } public int getInteger(int index) { return Integer.parseInt(data.get(index)); } public String getString(int index) { return data.get(index); } public String toString() { StringBuilder sb = new StringBuilder(); int ix = 0; for (String s : data) { if (ix > 0) { sb.append(","); } sb.append(s); ix++; } return sb.toString(); } }