amazon-ion / ion-element-kotlin

IonElement is an immutable in-memory representation of the Ion data format. IonElement's API is idiomatic to Kotlin.
Apache License 2.0
8 stars 8 forks source link

Adds function to check if a field name is present in a struct #68

Closed popematt closed 2 years ago

popematt commented 2 years ago

Issue #, if available:

Fixes #41

Description of changes:

Adds containsField(fieldName: String): Boolean function to StructElement. This function is essentially like containsKey from the Map interface.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.