buremba
10/30/2018, 3:04 AMannotation class CustomAnnotation<E>(val externalProperty: String, val valuesEnum: KClass<E>) where E: Enum<E>, E: ValueEnum
interface ValueEnum {
fun getName(): String
fun getValueClass() : KClass<*>
}
@CustomAnnotation<ProposedSolution.Type>(externalProperty = "type", valuesEnum = ProposedSolution.Type::class)