CordaSerializationTransformEnumDefault - corda

corda / net.corda.core.serialization / CordaSerializationTransformEnumDefault

# CordaSerializationTransformEnumDefault

`@Target([AnnotationTarget.CLASS]) annotation class CordaSerializationTransformEnumDefault`

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

### Constructors

#### <init> | 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 `CordaSerializationTransformEnumDefault(new: String, old: String)`

### Properties

#### new | String equivalent of the value of the new constant `val new: String`
#### old | String equivalent of the value of the existing constant that deserialisers should favour when de-serialising a value they have no corresponding value for `val old: String`