CordaSerializationTransformEnumDefault

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class CordaSerializationTransformEnumDefault(val new: String, val old: String)

This annotation is used to mark an enumerated type as having had a new constant appended to it. For each additional constant added a new annotation should be appended to the class. If more than one is required the wrapper annotation CordaSerializationTransformEnumDefaults should be used to encapsulate them

Properties

Link copied to clipboard
val new: String

String equivalent of the value of the new constant

Link copied to clipboard
val old: String

String equivalent of the value of the existing constant that deserialisers should favour when de-serialising a value they have no corresponding value for