org.easycsv
Class CsvRow

java.lang.Object
  extended by org.easycsv.CsvRow
All Implemented Interfaces:
java.io.Serializable

public class CsvRow
extends java.lang.Object
implements java.io.Serializable

Version:
$LastChangedRevision: 14 $
Author:
Oliver J. Siegmar
See Also:
Serialized Form

Constructor Summary
protected CsvRow(java.util.Map<java.lang.String,java.lang.Integer> nameColumnMapping, java.util.List<java.lang.String> row)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Double getDouble(int col)
           
 java.lang.Double getDouble(int col, java.lang.Double def)
           
 java.lang.Double getDouble(java.lang.String colName)
           
 java.lang.Double getDouble(java.lang.String colName, java.lang.Double def)
           
 java.lang.Float getFloat(int col)
           
 java.lang.Float getFloat(int col, java.lang.Float def)
           
 java.lang.Float getFloat(java.lang.String colName)
           
 java.lang.Float getFloat(java.lang.String colName, java.lang.Float def)
           
 java.lang.Integer getInt(int col)
           
 java.lang.Integer getInt(int col, java.lang.Integer def)
           
 java.lang.Integer getInt(java.lang.String colName)
           
 java.lang.Integer getInt(java.lang.String colName, java.lang.Integer def)
           
 java.util.List<java.lang.String> getList()
           
 java.lang.Long getLong(int col)
           
 java.lang.Long getLong(int col, java.lang.Long def)
           
 java.lang.Long getLong(java.lang.String colName)
           
 java.lang.Long getLong(java.lang.String colName, java.lang.Long def)
           
 java.util.Map<java.lang.String,java.lang.String> getMap()
           
 java.lang.String getString(int col)
           
 java.lang.String getString(int col, java.lang.String def)
           
 java.lang.String getString(java.lang.String colName)
           
 java.lang.String getString(java.lang.String colName, java.lang.String def)
           
 int hashCode()
           
 int size()
          Gets the size (= numer of columns) of this row
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CsvRow

protected CsvRow(java.util.Map<java.lang.String,java.lang.Integer> nameColumnMapping,
                 java.util.List<java.lang.String> row)
Parameters:
nameColumnMapping -
row -
Method Detail

getString

public java.lang.String getString(int col)
Parameters:
col -
Returns:

getString

public java.lang.String getString(int col,
                                  java.lang.String def)
Parameters:
col -
def -
Returns:

getString

public java.lang.String getString(java.lang.String colName)
                           throws CsvException
Parameters:
colName -
Returns:
Throws:
CsvException

getString

public java.lang.String getString(java.lang.String colName,
                                  java.lang.String def)
                           throws CsvException
Parameters:
colName -
def -
Returns:
Throws:
CsvException

getInt

public java.lang.Integer getInt(int col)
Parameters:
col -
Returns:

getInt

public java.lang.Integer getInt(int col,
                                java.lang.Integer def)
Parameters:
col -
def -
Returns:

getInt

public java.lang.Integer getInt(java.lang.String colName)
                         throws CsvException
Parameters:
colName -
Returns:
Throws:
CsvException

getInt

public java.lang.Integer getInt(java.lang.String colName,
                                java.lang.Integer def)
                         throws CsvException
Parameters:
colName -
def -
Returns:
Throws:
CsvException

getLong

public java.lang.Long getLong(int col)
Parameters:
col -
Returns:

getLong

public java.lang.Long getLong(int col,
                              java.lang.Long def)
Parameters:
col -
def -
Returns:

getLong

public java.lang.Long getLong(java.lang.String colName)
                       throws CsvException
Parameters:
colName -
Returns:
Throws:
CsvException

getLong

public java.lang.Long getLong(java.lang.String colName,
                              java.lang.Long def)
                       throws CsvException
Parameters:
colName -
def -
Returns:
Throws:
CsvException

getFloat

public java.lang.Float getFloat(int col)
Parameters:
col -
Returns:

getFloat

public java.lang.Float getFloat(int col,
                                java.lang.Float def)
Parameters:
col -
def -
Returns:

getFloat

public java.lang.Float getFloat(java.lang.String colName)
                         throws CsvException
Parameters:
colName -
Returns:
Throws:
CsvException

getFloat

public java.lang.Float getFloat(java.lang.String colName,
                                java.lang.Float def)
                         throws CsvException
Parameters:
colName -
def -
Returns:
Throws:
CsvException

getDouble

public java.lang.Double getDouble(int col)
Parameters:
col -
Returns:

getDouble

public java.lang.Double getDouble(int col,
                                  java.lang.Double def)
Parameters:
col -
def -
Returns:

getDouble

public java.lang.Double getDouble(java.lang.String colName)
                           throws CsvException
Parameters:
colName -
Returns:
Throws:
CsvException

getDouble

public java.lang.Double getDouble(java.lang.String colName,
                                  java.lang.Double def)
                           throws CsvException
Parameters:
colName -
def -
Returns:
Throws:
CsvException

getMap

public java.util.Map<java.lang.String,java.lang.String> getMap()
Returns:

getList

public java.util.List<java.lang.String> getList()
Returns:

size

public int size()
Gets the size (= numer of columns) of this row

Returns:
the size (= numer of columns) of this row

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright 2005-2005-2006 null. All Rights Reserved.