FileDocCategorySizeDatePackage
DoubleValueConstant.javaAPI DocJ2ME CLDC 1.11578Wed Feb 05 15:56:02 GMT 2003components

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 );