public class CSVRecord
extends java.lang.Object
implements java.io.Serializable, java.lang.Iterable<java.lang.String>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(int i)
Returns a value by index.
|
java.lang.String |
get(java.lang.String name)
Returns a value by name.
|
java.lang.String |
getComment() |
long |
getRecordNumber() |
boolean |
isMapped(java.lang.String name)
Checks whether a given column is mapped.
|
boolean |
isSet(java.lang.String name)
Checks whether a given columns is mapped and has a value.
|
java.util.Iterator<java.lang.String> |
iterator() |
int |
size()
Returns the number of values in this record.
|
java.lang.String |
toString() |
public java.lang.String get(int i)
i
- the index of the column retrievedpublic java.lang.String get(java.lang.String name)
name
- the name of the column to be retrieved.null
if the column name is not foundjava.lang.IllegalStateException
- if no header mapping was providedpublic boolean isMapped(java.lang.String name)
name
- the name of the column to be retrieved.public boolean isSet(java.lang.String name)
name
- the name of the column to be retrieved.public java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
public java.lang.String getComment()
public long getRecordNumber()
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.