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

Add Primitive Operators #81

Closed tjcsrc16 closed 1 year ago

tjcsrc16 commented 1 year ago

This adds operator overloads as extension functions between various IonElement subtypes and primitive types. The purpose is to improve the usability of working directly with IonElement values rather than serializing to/from data classes. Specifically, the following operators are supported:

See OPERATORS.md for additional details.

Issue #, if available:

Description of changes:

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

tjcsrc16 commented 1 year ago

Sorry for the duplicate pull request, I replaced my forked upstream branch and didn't know that would automatically close the previous PR.

codecov-commenter commented 1 year ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@402c751). Click here to learn what that means. Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #81 +/- ## ========================================= Coverage ? 89.65% Complexity ? 454 ========================================= Files ? 30 Lines ? 976 Branches ? 145 ========================================= Hits ? 875 Misses ? 60 Partials ? 41 ``` Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.