- java.lang.Object
-
- com.ibm.j9ddr.vm29.j9.DataType
-
- com.ibm.j9ddr.vm29.types.Scalar
-
-
Field Summary
Fields Modifier and Type Field Description protected static intbitsPerBytesprotected static intbitsPerLongprotected longdataprotected StringtoStringPattern-
Fields declared in class com.ibm.j9ddr.vm29.j9.DataType
BITFIELD_FORMAT, pointerPackageName, process, SIZEOF_BOOL, structurePackageName
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanallBitsIn(long bitmask)booleananyBitsIn(long bitmask)bytebyteValue()protected voidcheckComparisonValid(Scalar parameter)static UDATAconvertBytesToSlots(UDATA size)static UDATAconvertSlotsToBytes(UDATA size)booleaneq(long parameter)booleaneq(Scalar parameter)booleanequals(Object parameter)This is a class based equals.StringgetHexValue()booleangt(int parameter)booleangt(long parameter)booleangt(Scalar parameter)booleangte(Scalar parameter)intintValue()abstract booleanisSigned()booleanisZero()booleanlt(int parameter)booleanlt(long parameter)booleanlt(Scalar parameter)booleanlte(Scalar parameter)booleanmaskAndCompare(long bitmask, long compareValue)protected static UDATAroundTo(UDATA value, long size)static UDATAroundToSizeofU32(UDATA value)static UDATAroundToSizeofU64(UDATA value)static UDATAroundToSizeofUDATA(UDATA value)static UDATAroundToSizeToFJ9object(UDATA value)static UDATAroundToSizeToObjectReference(UDATA value)shortshortValue()protected booleansignBitSet()abstract intsizeof()-
Methods declared in class com.ibm.j9ddr.vm29.j9.DataType
formatShortInteractive, getJ9RASPointer, getPointerPackageName, getProcess, getStructure, getStructure, getStructure, getStructurePackageName, init, longValue, setJ9RASPointer
-
-
-
-
Field Detail
-
data
protected long data
-
bitsPerBytes
protected static final int bitsPerBytes
- See Also:
- Constant Field Values
-
bitsPerLong
protected static final int bitsPerLong
- See Also:
- Constant Field Values
-
toStringPattern
protected String toStringPattern
-
-
Constructor Detail
-
Scalar
public Scalar(long value)
-
Scalar
public Scalar(Scalar value)
-
Scalar
public Scalar()
-
-
Method Detail
-
byteValue
public byte byteValue()
-
shortValue
public short shortValue()
-
intValue
public int intValue()
-
getHexValue
public String getHexValue()
-
equals
public boolean equals(Object parameter)
This is a class based equals. Objects can only be equal if they are the same class. It is meant for use with Hash based collections. I.E. U16.equals(I16) is never true, regardless of the values represented by the objects. For mathematical equality use .eq(Scalar)- Overrides:
equalsin classObject- Parameters:
parameter- Object the object to compare with this object.- Returns:
- boolean
trueif the object is the same as this objectfalseif it is different from this object. - See Also:
Object.hashCode()
-
eq
public boolean eq(Scalar parameter)
-
eq
public boolean eq(long parameter)
-
checkComparisonValid
protected void checkComparisonValid(Scalar parameter)
-
gt
public boolean gt(int parameter)
-
gt
public boolean gt(long parameter)
-
lt
public boolean lt(int parameter)
-
lt
public boolean lt(long parameter)
-
isZero
public boolean isZero()
-
gt
public boolean gt(Scalar parameter)
-
gte
public boolean gte(Scalar parameter)
-
lt
public boolean lt(Scalar parameter)
-
lte
public boolean lte(Scalar parameter)
-
allBitsIn
public final boolean allBitsIn(long bitmask)
-
anyBitsIn
public boolean anyBitsIn(long bitmask)
-
maskAndCompare
public boolean maskAndCompare(long bitmask, long compareValue)
-
signBitSet
protected boolean signBitSet()
-
sizeof
public abstract int sizeof()
-
isSigned
public abstract boolean isSigned()
-
-