FileDocCategorySizeDatePackage
CstLiteral64.javaAPI DocAndroid 1.5 API2160Wed May 06 22:41:02 BST 2009com.android.dx.rop.cst

CstLiteral64

public abstract class CstLiteral64 extends CstLiteralBits
Constants which are literal 64-bit values of some sort.

Fields Summary
private final long
bits
the value as long bits
Constructors Summary
CstLiteral64(long bits)
Constructs an instance.

param
bits the value as long bits

        this.bits = bits;
    
Methods Summary
protected intcompareTo0(Constant other)
{@inheritDoc}

        long otherBits = ((CstLiteral64) other).bits;

        if (bits < otherBits) {
            return -1;
        } else if (bits > otherBits) {
            return 1;
        } else {
            return 0;
        }
    
public final booleanequals(java.lang.Object other)
{@inheritDoc}

        return (other != null) &&
            (getClass() == other.getClass()) &&
            bits == ((CstLiteral64) other).bits;
    
public final booleanfitsInInt()
{@inheritDoc}

        return (int) bits == bits;
    
public final intgetIntBits()
{@inheritDoc}

        return (int) bits;
    
public final longgetLongBits()
{@inheritDoc}

        return bits;
    
public final inthashCode()
{@inheritDoc}

        return (int) bits ^ (int) (bits >> 32);
    
public final booleanisCategory2()
{@inheritDoc}

        return true;