/** * Return the field based on the tag value associated with the Object. */ public Object getField(Object o) { if (o == null) { return null; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getField(); } }
public static boolean lazyCompareUnion(UnionTypeInfo unionTypeInfo, LazyBinaryUnion union, UnionObject expectedUnion) { byte tag = union.getTag(); byte expectedTag = expectedUnion.getTag(); if (tag != expectedTag) { throw new RuntimeException("Union tag does not match union.getTag() " + tag + " expectedUnion.getTag() " + expectedTag); } return lazyCompare(unionTypeInfo.getAllUnionObjectTypeInfos().get(tag), union.getField(), expectedUnion.getObject()); }
/** * Return the field based on the tag value associated with the Object. */ public Object getField(Object o) { if (o == null) { return null; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getField(); } }
/** * Return the field based on the tag value associated with the Object. */ public Object getField(Object o) { if (o == null) { return null; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getField(); } }
/** * Return the field based on the tag value associated with the Object. */ public Object getField(Object o) { if (o == null) { return null; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getField(); } }
/** * Return the field based on the tag value associated with the Object. */ public Object getField(Object o) { if (o == null) { return null; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getField(); } }
public static boolean lazyCompareUnion(UnionTypeInfo unionTypeInfo, LazyBinaryUnion union, UnionObject expectedUnion) { byte tag = union.getTag(); byte expectedTag = expectedUnion.getTag(); if (tag != expectedTag) { throw new RuntimeException("Union tag does not match union.getTag() " + tag + " expectedUnion.getTag() " + expectedTag); } return lazyCompare(unionTypeInfo.getAllUnionObjectTypeInfos().get(tag), union.getField(), expectedUnion.getObject()); }