While reviewing PR against another library that consumes IonElement, I observed that it would be nice to be able to check for the existence of a field in a struct without having to call StructElement.getOptional(String) and checking the return value for null.
Ideally, a StructElement.hasField function that returns a boolean value exists.
While reviewing PR against another library that consumes
IonElement
, I observed that it would be nice to be able to check for the existence of a field in a struct without having to callStructElement.getOptional(String)
and checking the return value for null.Ideally, a
StructElement.hasField
function that returns a boolean value exists.