Commit 5d6fc192 authored by Behrooz Khorashadi's avatar Behrooz Khorashadi

Added an API method in FieldData to allow access to the UnknownField data

Change-Id: I2cd5cfc80dce2a297fcd2511074b2a9d23d39837
parent 59f2ff58
......@@ -58,6 +58,23 @@ class FieldData {
unknownFieldData.add(unknownField);
}
UnknownFieldData getUnknownField(int index) {
if (unknownFieldData == null) {
return null;
}
if (index < unknownFieldData.size()) {
return unknownFieldData.get(index);
}
return null;
}
int getUnknownFieldSize() {
if (unknownFieldData == null) {
return 0;
}
return unknownFieldData.size();
}
<T> T getValue(Extension<?, T> extension) {
if (value != null){
if (cachedExtension != extension) { // Extension objects are singletons.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment