FileDocCategorySizeDatePackage
DoubleValueConstant.javaAPI DocphoneME MR2 API (J2ME)2380Wed May 02 17:59:48 BST 2007components

DoubleValueConstant

public class DoubleValueConstant extends ConstantObject

Fields Summary
public int
highVal
public int
lowVal
Constructors Summary
private DoubleValueConstant(int t, int h, int l)

	tag = t;
	highVal = h;
	lowVal = l;
	nSlots = 2;
    
Methods Summary
public booleanequals(java.lang.Object o)

	if (o instanceof DoubleValueConstant) {
	    DoubleValueConstant d = (DoubleValueConstant) o;
	    return tag == d.tag && highVal == d.highVal && lowVal == d.lowVal;
	} else {
	    return false;
	}
    
public inthashCode()

	return tag + highVal + lowVal;
    
public booleanisResolved()

 return true; 
public static ConstantObjectread(int t, java.io.DataInput i)

	return new DoubleValueConstant( t, i.readInt(), i.readInt() );
    
public java.lang.StringtoString()

	String t = (tag == Const.CONSTANT_DOUBLE)?"Double [ " : "Long [ ";
	return t + Integer.toHexString( highVal ) + " " + Integer.toHexString( lowVal ) +" ]";
    
public voidwrite(java.io.DataOutput o)

	o.writeByte( tag );
	o.writeInt( highVal );
	o.writeInt( lowVal );