borgeby / jarl

Jarl is an Open Policy Agent (OPA) evaluator for the JVM and Javascript, written in Clojure(Script)
Apache License 2.0
41 stars 5 forks source link

Adding convenience methods to `Result` in Java API #171

Closed johanfylling closed 1 year ago

johanfylling commented 1 year ago

Fixes: #170

johanfylling commented 1 year ago

I'm unsure if any other helpers are necessary, given that we have the <T> T getValue(Class<T> type) method that should be fine for most types that don't have generics. Don't want to build this out in absurdum, too ..

codecov-commenter commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (44919aa) 83.66% compared to head (f1ee621) 83.66%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #171 +/- ## ======================================= Coverage 83.66% 83.66% ======================================= Files 47 47 Lines 2584 2584 Branches 178 178 ======================================= Hits 2162 2162 Misses 244 244 Partials 178 178 ```

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