public class HollowReadFieldUtils
extends java.lang.Object
HollowDataAccess
.Constructor and Description |
---|
HollowReadFieldUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
booleanHashCode(java.lang.Boolean bool) |
static int |
byteArrayHashCode(byte[] data) |
static java.lang.String |
displayString(HollowObjectTypeDataAccess typeAccess,
int ordinal,
int fieldPosition) |
static int |
doubleHashCode(double d) |
static int |
fieldHashCode(HollowObjectTypeDataAccess typeAccess,
int ordinal,
int fieldPosition)
Hash a field in an OBJECT record.
|
static boolean |
fieldsAreEqual(HollowObjectTypeDataAccess typeAccess1,
int ordinal1,
int fieldPosition1,
HollowObjectTypeDataAccess typeAccess2,
int ordinal2,
int fieldPosition2)
Determine whether two OBJECT field records are exactly equal.
|
static boolean |
fieldValueEquals(HollowObjectTypeDataAccess typeAccess,
int ordinal,
int fieldPosition,
java.lang.Object testObject) |
static java.lang.Object |
fieldValueObject(HollowObjectTypeDataAccess typeAccess,
int ordinal,
int fieldPosition) |
static int |
floatHashCode(float f) |
static int |
intHashCode(int i) |
static int |
longHashCode(long l) |
static int |
stringHashCode(java.lang.String str) |
public static int fieldHashCode(HollowObjectTypeDataAccess typeAccess, int ordinal, int fieldPosition)
typeAccess
- the data accessordinal
- the ordinalfieldPosition
- the field positionpublic static boolean fieldsAreEqual(HollowObjectTypeDataAccess typeAccess1, int ordinal1, int fieldPosition1, HollowObjectTypeDataAccess typeAccess2, int ordinal2, int fieldPosition2)
typeAccess1
- the first type accessordinal1
- the first ordinalfieldPosition1
- the first field positiomtypeAccess2
- the second type accessordinal2
- the second ordinalfieldPosition2
- the second field positionpublic static java.lang.String displayString(HollowObjectTypeDataAccess typeAccess, int ordinal, int fieldPosition)
typeAccess
- the type accessordinal
- the ordinalfieldPosition
- the field positionpublic static java.lang.Object fieldValueObject(HollowObjectTypeDataAccess typeAccess, int ordinal, int fieldPosition)
typeAccess
- the type accessordinal
- the ordinalfieldPosition
- the field positionpublic static boolean fieldValueEquals(HollowObjectTypeDataAccess typeAccess, int ordinal, int fieldPosition, java.lang.Object testObject)
typeAccess
- the type accessordinal
- the ordinalfieldPosition
- the field positiontestObject
- the object to testpublic static int byteArrayHashCode(byte[] data)
data
- the byte arrayfieldHashCode(HollowObjectTypeDataAccess, int, int)
public static int stringHashCode(java.lang.String str)
str
- the string valuefieldHashCode(HollowObjectTypeDataAccess, int, int)
public static int booleanHashCode(java.lang.Boolean bool)
bool
- the boolean valuefieldHashCode(HollowObjectTypeDataAccess, int, int)
public static int longHashCode(long l)
l
- the long valuefieldHashCode(HollowObjectTypeDataAccess, int, int)
public static int intHashCode(int i)
i
- the int valuefieldHashCode(HollowObjectTypeDataAccess, int, int)
public static int floatHashCode(float f)
f
- the float valuefieldHashCode(HollowObjectTypeDataAccess, int, int)
public static int doubleHashCode(double d)
d
- the double valuefieldHashCode(HollowObjectTypeDataAccess, int, int)