MCPcopy Create free account
hub / github.com/apache/thrift / checkType

Method checkType

lib/java/src/main/java/org/apache/thrift/TUnion.java:169–169  ·  view source on GitHub ↗

Implementation should be generated so that we can efficiently type check various values. @param setField the field to assign value to. @param value the value to be assigned to setField. @throws ClassCastException if the type of value is incompatible with the type of setField.

(F setField, Object value)

Source from the content-addressed store, hash-verified

167 * @throws ClassCastException if the type of value is incompatible with the type of setField.
168 */
169 protected abstract void checkType(F setField, Object value) throws ClassCastException;
170
171 /**
172 * Implementation should be generated to read the right stuff from the wire based on the field

Callers 1

setFieldValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected