Michael
03/19/2018, 2:18 PMCriteria criteria = new Criteria(new Filter(new Filter.FilterConditions("field", "value", FilterConditionOperator.EQ)))
The “FilterConditionOperator” thing really annoys me - and I don’t think I’ve seen a way to sort of “force a static `import`“, right? Would the “idiomatic Kotlin” way to go be maybe to make an infix function for each of the enum values, as a FilterConditionFactory?Evgeniy Zaharov
03/19/2018, 2:19 PMMichael
03/19/2018, 2:22 PMFilter.FilterCondition
doesn’t have a default constructor - I was trying to look at some DSL examples, but they seemed to start with a default constructor, then set the fields. That’s when I thought, maybe infix functions as constructors (for that portion) might be the way to go, the way `map`s can use to
to generate pairs.