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>

CordaSerializationTransformEnumDefault(new: String, 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

new

val new: String

String equivalent of the value of the new constant

old

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

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.