/** * Return the tag of the object. */ public byte getTag(Object o) { if (o == null) { return -1; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getTag(); }
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 tag of the object. */ public byte getTag(Object o) { if (o == null) { return -1; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getTag(); }
/** * Return the tag of the object. */ public byte getTag(Object o) { if (o == null) { return -1; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getTag(); }
/** * Return the tag of the object. */ public byte getTag(Object o) { if (o == null) { return -1; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getTag(); }
/** * Return the tag of the object. */ public byte getTag(Object o) { if (o == null) { return -1; } LazyBinaryUnion lazyBinaryUnion = (LazyBinaryUnion) o; return lazyBinaryUnion.getTag(); }
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()); }