Michael de Kaste
06/21/2022, 1:15 PMephemient
06/21/2022, 2:20 PMType<out T>
then doSomethingWithType<Any>(Type.OnlyWithString(""), Holder(0))
would be completely legalMichael de Kaste
06/21/2022, 2:37 PMout T
), but in general, I only want to be able to call doSomethingWithType if both Type and Holder have the exact same typesephemient
06/21/2022, 2:42 PMdata class HolderWithType(val type: String, val value: String) : Type<String>, Holder<String>
and using that insteadMichael de Kaste
06/21/2022, 2:52 PMIsLessThan<T : Comparable<T>>
, IsNull<Nothing>
, etc.) and a path source from javax. For some of the criteriabuilder functions like the actual "greaterThan", the types of the path and expression need to have the same subtype. But for a like
function, path needs to be string, so we setup a searchcriteria that only accepts strings as wellephemient
06/21/2022, 2:54 PM