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