brf.j2me.dynaworks.db
Class IntegerField

java.lang.Object
  |
  +--brf.j2me.dynaworks.db.RecordField
        |
        +--brf.j2me.dynaworks.db.IntegerField

public class IntegerField
extends RecordField

Record field holding an Integer value.

Version:
1.0a1
Author:
Bernd R. Fix
See Also:
RecordField

Field Summary
private  java.lang.Integer content
          Integer value of field.
 
Fields inherited from class brf.j2me.dynaworks.db.RecordField
size
 
Constructor Summary
IntegerField()
          Construct a new Integer record field.
 
Method Summary
 boolean fromImage(byte[] m)
          Convert a byte array into integer field data.
 int getValue()
          Return the value of the record field.
 void setValue(int i)
          Set the value of the record field.
 byte[] toImage()
          Convert the integer field data into a byte array.
 
Methods inherited from class brf.j2me.dynaworks.db.RecordField
getExpectedSize, getSize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

content

private java.lang.Integer content
Integer value of field.

Constructor Detail

IntegerField

public IntegerField()
Construct a new Integer record field.

Method Detail

getValue

public int getValue()
Return the value of the record field.

Returns:
int-value of the field.

setValue

public void setValue(int i)
Set the value of the record field.

Parameters:
i - int - value for the record field.

toImage

public byte[] toImage()
Convert the integer field data into a byte array.

Overrides:
toImage in class RecordField
Returns:
byte[] - byte array containing the field data.

fromImage

public boolean fromImage(byte[] m)
Convert a byte array into integer field data.

Overrides:
fromImage in class RecordField
Parameters:
m - byte[] - array holding the data.
Returns:
boolean - conversion successful?