Vlad Krava
fun test(root: Root<T>, builder: CriteriaBuilder, elementClass: Class<*>) { toObjectPredicate(root, builder, elementClass as Class<Enum<*>>) }
private fun <Y : Comparable<Y>> toObjectPredicate( root: Root<T>, builder: CriteriaBuilder, elementClass: Class<Y> ): Predicate? { val key: Path<Y> = root.get(filter.field) @Suppress("UNCHECKED_CAST") return null }
public abstract class Enum<E : Enum<E>>(name: String, ordinal: Int): Comparable<E>
A modern programming language that makes developers happier.