es.unex.sextante.dataObjects
Class RecordImpl

java.lang.Object
  extended by es.unex.sextante.dataObjects.RecordImpl
All Implemented Interfaces:
IRecord

public class RecordImpl
extends java.lang.Object
implements IRecord

A simple implementation of the IRecord interface

Author:
volaya

Constructor Summary
RecordImpl(java.lang.Object[] values)
          Creates a new record from an array of values
 
Method Summary
 java.lang.Object getValue(int field)
          Returns the value at a field
 java.lang.Object[] getValues()
          Returns an array with all the values of the record
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordImpl

public RecordImpl(java.lang.Object[] values)
Creates a new record from an array of values

Parameters:
values - an array of values
Method Detail

getValue

public java.lang.Object getValue(int field)
Description copied from interface: IRecord
Returns the value at a field

Specified by:
getValue in interface IRecord
Parameters:
field - the index of the field. zero-based
Returns:
The value at the specified field

getValues

public java.lang.Object[] getValues()
Description copied from interface: IRecord
Returns an array with all the values of the record

Specified by:
getValues in interface IRecord
Returns:
an array with all the values of the record