Improve Java (non-kotlin) docs & API
Documentation is a bit light in Java, and is very Kotlin heavy.
We should generate examples in Java too (including in the code generators in the query server and in guides.vyne.co). Also, there are cases where the API is pleasant to use in Kotlin, but where we could do better with the Java equivalent.
A specific question:
I would be happy to see java example for the line "vyne.given(...).discover<...>()".
With an answer:
@GetMapping("/balances/java/{customerEmail}")
BigDecimal getCustomerPointsBalance(@PathVariable("customerEmail") String customerEmailAddress) {
RewardsAccountBalance balance = vyne.given(new Fact("demo.CustomerEmailAddress", customerEmailAddress))
.discover(RewardsAccountBalance.class);
return balance.getBalance();
}